Page MenuHomeFreeBSD

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

Authored by dumbbell on Apr 22 2026, 6:57 PM.
Tags
None
Referenced Files
F167664060: D56583.id176164.diff
Sun, Aug 23, 3:43 PM
F167565263: D56583.id.diff
Sat, Aug 22, 5:44 PM
Unknown Object (File)
Sat, Aug 22, 4:43 PM
Unknown Object (File)
Sat, Aug 22, 1:18 PM
Unknown Object (File)
Sat, Aug 22, 12:34 PM
Unknown Object (File)
Thu, Aug 13, 6:20 PM
Unknown Object (File)
Thu, Aug 13, 12:40 AM
Unknown Object (File)
Wed, Aug 12, 9:12 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