STRUCT SBITMAP_WORD(9)
β¨ struct_sbitmap_word(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for struct sbitmap_word β it's a thing, it's iconic, and you're gonna get it. Let's go π
πΈ NAME πΈ
struct sbitmap_word β literally just a word in a &struct sbitmap. that's the whole vibe. periodt.
π SYNOPSIS π
struct sbitmap_word {
unsigned long word;
unsigned long cleared;
raw_spinlock_t swap_lock;
};
three fields. no more, no less. she's simple, she's efficient, she's giving main character energy in the smallest way possible π¦
π Members π
wordβ the word that's holding the free bits. yes bestie, this is where the "what's available" lives π«Άclearedβ the word holding the cleared bits. keeping receipts of what's been cleared, ngl that's very organized of her πswap_lockβ a lock that serializes simultaneous updates of->wordand->cleared. so like, if two threads try to touch both at once? she says one at a time, please π
π SEE ALSO π
the whole friend group π β this struct does not exist alone, she's part of a whole ecosystem:
Kernel file ./include/linux/sbitmap.h, plus:
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_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 bestie, you ATE that reading session π this one came from the kernel source at ./include/linux and it's dated October 2026 β so go forth and be the most knowledgeable person in the group chat, iykyk π₯π
π¦ 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