sbitmap_free(9)
π sbitmap_free(9) π
okay bestie, welcome to the Kernel API Manual β yes we're literally in the kernel now, keep up π«Ά
β¨ NAME β¨
sbitmap_free β frees the memory used by a &struct sbitmap, no cap, that's the whole job π
πΈ SYNOPSIS πΈ
void sbitmap_free (struct sbitmap *sb );
likeβ¦ that's it. one function. one pointer. she's simple and she slays β¨
π ARGUMENTS π
sbβ the bitmap you're freeing. that's the one. hand her over π (technically: Bitmap to free.)
π¦ SEE ALSO π¦
so this function has a whole friend group and honestly the guest list is enormous, but every single one of them gets an invite, periodt:
- the kernel file
./include/linux/sbitmap.h struct sbitmap_word(9)struct sbitmap(9)struct sbq_wait_state(9)struct sbitmap_queue(9)sbitmap_init_node(9)sbitmap_resize(9)sbitmap_get(9)sbitmap_any_bit_set(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)
π reminder bestie: this is the free one. if you're still holding onto anything from that bitmap after this, that's on you and it's giving use-after-free energy. free her once and then let her rest π
and that's the whole vibe check, i love this for us π§
this little masterpiece lives in ./include/linux, dropped October 2026, and it's filed under sbitmap_free(9) β mwah, bye bestie, go free some memory ππ
π¦ 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