sbitmap_any_bit_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sbitmap_any_bit_set ✨

okay bestie, so this is a page from the Kernel API Manual and it's about one (1) very specific little function, and honestly? she's giving "small but crucial" πŸ’…


🌸 NAME 🌸

sbitmap_any_bit_set β€” the vibe check for a &struct sbitmap: is any bit in there set or not? πŸ”


πŸŽ€ SYNOPSIS πŸŽ€

bool sbitmap_any_bit_set (const struct sbitmap *sb );

literally that's the whole signature, no cap. she takes one pointer and hands you back a bool. iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sb β€” the bitmap you want to check. that's it. that's the whole argument. go off queen 🫢

⭐ RETURN ⭐

returns true if any bit in the bitmap is set, and false otherwise. simple as that, fr fr πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

bestie there is a whole squad here, and we're listing every single one of them because nobody gets left behind πŸ‘‘

like… that is a lot of friends and they all matter πŸ’œ


quick note bestie: this page calls sb a "Bitmap to check" β€” that's the whole spec, don't go reading extra behaviour into it πŸ™ˆ

mwah πŸ’‹ this little page lives in ./include/linux, dated October 2026, and it's part of the Kernel API Manual β€” so go forth, check those bits, and slay βœ¨πŸŒˆπŸŽ€

πŸ“¦ where this page comes from