HomeFreeBSD

LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()

Description

LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()

and bitmap_shift_right() functions to linux/bitmap.h

They perform calculation of two bitmaps intersection,
copying the contents of u32 array of bits to bitmap and
logical right shifting of the bits in a bitmap.

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

(cherry picked from commit 5ae2e6f913fa1df5f3262255558b76af05409a09)

Details

Provenance
wulfAuthored on Dec 24 2023, 8:19 AM
Reviewer
manu
Differential Revision
D42812: LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()
Parents
rGcdceed0413d0: LinuxKPI: Add cancel_work() function.
Branches
Unknown
Tags
Unknown