sbitmap_for_each_set(9)
β¨ sbitmap_for_each_set(9) β¨
okay so this is a page from the Kernel API Manual, and today's main character is sbitmap_for_each_set π
πΈ NAME πΈ
sbitmap_for_each_set β iterate over each set bit in a &struct sbitmap. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
void sbitmap_for_each_set (struct sbitmap *sb , sb_for_each_fn fn , void
*data );
π ARGUMENTS π
sbβ the bitmap bestie is iterating over. this is the one you're walking through πΆββοΈfnβ the callback. it should returntrueto keep going, orfalseto break early and dip out π (iykyk, it's giving "graceful exit")dataβ a pointer that gets passed straight to your callback. hand it whatever you want fr fr π«Ά
π SEE ALSO π
Kernel file ./include/linux/sbitmap.h, plus literally the whole sbitmap extended universe π:
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_any_bit_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)
and that's the page!! π no cap, it's short but it ate. mwah π
so anyway, the source for all this is ./include/linux, dated October 2026, and it's filed under sbitmap_for_each_set(9) β stan the kernel docs bestie, they literally never miss β¨π«Ά
π¦ 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