HomeFreeBSD

LinuxKPI: Add sort() wrapper.

Description

LinuxKPI: Add sort() wrapper.

swap parameter is not supported as it is rarely used in Linux kernel
and its implementation will add some preprocessor spaghetti to qsort.

Required by drm-kmod.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33675

Details

Provenance
wulfAuthored on Dec 25 2021, 9:15 AM
Differential Revision
D33675: LinuxKPI: Add sort() wrapper.
Parents
rG64dab63f3b3b: LinuxKPI: Use negative bit field size to trigger BUILD_BUG_ON_ZERO
Branches
Unknown
Tags
Unknown