Page MenuHomeFreeBSD

LinuxKPI: add umin()
ClosedPublic

Authored by bz on Jan 20 2026, 11:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 15, 5:26 AM
Unknown Object (File)
Sat, Mar 14, 11:22 PM
Unknown Object (File)
Wed, Mar 11, 9:38 AM
Unknown Object (File)
Wed, Mar 11, 5:22 AM
Unknown Object (File)
Feb 26 2026, 7:30 PM
Unknown Object (File)
Feb 22 2026, 12:08 AM
Unknown Object (File)
Feb 20 2026, 12:05 AM
Unknown Object (File)
Feb 8 2026, 10:42 AM
Subscribers

Details

Summary

Add a version of umin() simply using MIN() assuming that the Linux
upstream code properly check that the arguments are unsigned, etc.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

if anyone wants to implement a more sophisticated version
the next few days please let me know and be my guest.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70032
Build 66915: arc lint + arc unit