HomeFreeBSD

LinuxKPI: Add ida_alloc_min()

Description

LinuxKPI: Add ida_alloc_min()

ida_alloc_min() allocates an unused ID. between min and INT_MAX.

While here allow end parameter of ida_simple_get() be larger than
INT_MAX. Linux caps the value to INT_MAX.

Sponsored by: Serenity Cyber Security, LLC
Reviewers: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42806

(cherry picked from commit c7312643b7e5f01adc2a3094c5139f5dcab5f0a4)

Details

Provenance
wulfAuthored on Dec 24 2023, 8:19 AM
Differential Revision
D42806: LinuxKPI: Add ida_alloc_min()
Parents
rG67cc189db497: LinuxKPI: Add IOMEM_ERR_PTR() to linux/io.h
Branches
Unknown
Tags
Unknown