sbitmap_queu...e_wake_batch(9)
π NAME π
sbitmap_queue_recalculate_wake_batch β recalculate wake batch β¨
okay so bestie, quick intro before we dive in: this whole page lives in the Kernel API Manual, and the star of the show is a little function called sbitmap_queue_recalculate_wake_batch. That's it, that's the name. Now let's get into it π
π¦ SYNOPSIS π¦
like, here's the whole signature, literally copy-paste it into your brain:
void sbitmap_queue_recalculate_wake_batch (struct sbitmap_queue *sbq ,
unsigned int users );
no cap, that's all of it. returns void because it's a "you do the thing, I don't need a receipt" kind of function π
πΈ ARGUMENTS πΈ
sbqβ the bitmap queue you're recalculating the wake batch on π«Ά this is the main character, the thing getting its vibe checkusersβ the number of shares π that's it, that's the number of shares, don't overthink it
β¨ DESCRIPTION β¨
so here's the tea β β this function is like sbitmap_queue_update_wake_batch (its sibling, its peer, its coworker), and what it does is calculate the wake batch by depth. same energy, same math family π
and who is this interface for, you ask? it's for HCTX shared tags or queue shared tags π that's the whole reason it exists, those two situations, periodt π₯ so if you're not in one of those worlds, this might not be your function, iykyk.
β SEE ALSO β
the friend group π the whole kernel file crew, all listed out, no gatekeeping:
- 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_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_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, go read those too, they're iconic, they ate π β¨
and that's the page!! this whole thing ships out of ./include/linux, dated October 2026, and the page title is sbitmap_queu...e_wake_batch(9) (yes it's truncated, yes that's how it's printed, no we don't fix it π). bye bestie, go recalculate some wake batches πππ¦
π¦ 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