sbq_wait_ptr(9)
π sbq_wait_ptr(9) π
okay so welcome to the Kernel API Manual, bestie β this page is literally sbq_wait_ptr(9) and it's lowkey one of the shortest reads in the whole sbitmap cinematic universe. grab a boba, we're getting into it π§β¨
β¨ NAME β¨
sbq_wait_ptr β get the next wait queue to use for a &struct sbitmap_queue.
like, that's it. that's the whole job. it's giving "next, please π " energy and honestly? iconic.
π SYNOPSIS π
here's the exact signature, no cap, do not @ me:
struct sbq_wait_state * sbq_wait_ptr (struct sbitmap_queue *sbq ,
atomic_t *wait_index );
π ARGUMENTS π
sbqβ the bitmap queue to wait on. yes bestie, that's the entire description, we love a low-maintenance parameter πΈwait_indexβ a counter per "user" ofsbq. the quotes around user are literally in the original and i'm obsessed with the mystery of it π iykyk.
π₯ RETURN π₯
the next wait queue to be used. periodt. that's what comes back, that's the whole vibe check β no extra lore, no hidden side quests ππ«Ά
π SEE ALSO π
okay bestie, this is where the extended sbitmap universe shows up and it is stacked. the kernel file doing the heavy lifting here is ./include/linux/sbitmap.h, and it's carrying the whole cast:
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_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)sbitmap_queue_wake_all(9)sbitmap_queue_wake_up(9)sbitmap_queue_show(9)
like, twenty-eight whole entries?? the way this reference list ate and left absolutely no crumbs ππ₯
ngl the whole page is tiny but every single one of those references is doing its little main character moment. go read them, bestie, they're all right there π
that's a wrap on this one, bestie π«Ά it came out of ./include/linux and it's dated October 2026, page name sbq_wait_ptr(9) and all β ok bye, love u, go read some more kernel docs β¨ππ¦
π¦ 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