sbitmap_any_bit_set(9)
β¨ 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 π
- the kernel file
./include/linux/sbitmap.hβ that's where the family lives π struct sbitmap_word(9)struct sbitmap(9)struct sbq_wait_state(9)struct sbitmap_queue(9)sbitmap_init_node(9)sbitmap_free(9)sbitmap_resize(9)sbitmap_get(9)__sbitmap_for_each_set(9)sbitmap_for_each_set(9)sbitmap_show(9)sbitmap_weight(9)sbitmap_bitmap_show(9)sbitmap_queue_init_node(9)sbitmap_queue_free(9)sbitmap_queue_recalculate_wake_batch(9)sbitmap_queue_resize(9)__sbitmap_queue_get(9)__sbitmap_queue_get_batch(9)sbitmap_queue_get_shallow(9)sbitmap_queue_get(9)sbitmap_queue_min_shallow_depth(9)sbitmap_queue_clear(9)sbitmap_queue_clear_batch(9)sbq_wait_ptr(9)sbitmap_queue_wake_all(9)sbitmap_queue_wake_up(9)sbitmap_queue_show(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms