Page MenuHomeFreeBSD

linuxkpi: Define `min_array()` and `max_array()`
ClosedPublic

Authored by dumbbell on Apr 22 2026, 6:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 19, 10:57 PM
Unknown Object (File)
Sun, May 17, 11:06 AM
Unknown Object (File)
Sun, May 17, 11:03 AM
Unknown Object (File)
Fri, May 15, 5:27 PM
Unknown Object (File)
Tue, May 12, 10:09 PM
Unknown Object (File)
Tue, May 12, 5:04 AM
Unknown Object (File)
Sat, May 9, 9:20 PM
Unknown Object (File)
Sat, May 9, 9:14 PM
Subscribers

Details

Summary

They are macros that return the minimum or maximum values of an array of integers. They assume that the array contains elements.

The i915 DRM driver started to use min_array() in Linux 6.12.x.

This is part of the update of DRM drivers to Linux 6.12.81.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable