sbitmap_que...hallow_depth(9)
π sbitmap_queue_min_shallow_depth(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function called sbitmap_queue_min_shallow_depth, and honestly? she's short but she MATTERS. let's get into it π«Ά
πΈ NAME πΈ
sbitmap_queue_min_shallow_depth β the way you inform a &struct sbitmap_queue about the minimum shallow depth that's gonna get used πβ¨
π SYNOPSIS π
void sbitmap_queue_min_shallow_depth (struct sbitmap_queue *sbq ,
unsigned int min_shallow_depth );
no cap, that's the whole signature π
π¦ ARGUMENTS π¦
sbqβ the bitmap queue in question. like, the one you're talking about. the main character of this call πmin_shallow_depthβ the minimum shallow depth that will be passed tosbitmap_queue_get_shallowor__sbitmap_queue_get_shallow. yes, that exact one, don't get creative π
π₯ DESCRIPTION π₯
so here's the tea β β sbitmap_queue_clear batches wakeups as an optimization, right? and the batch size depends on the depth of the bitmap. iconic of her, truly.
but the shallow allocation functions effectively operate with a different depth, so the shallow depth has to be taken into account when calculating that batch size. the math does NOT math otherwise π
β οΈ so this function must be called with the minimum shallow depth that will actually be used. failure to do so can result in missed wakeups. and missed wakeups are NOT the vibe, bestie π
π SEE ALSO π
the whole friend group, fr fr π«Ά:
- 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_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_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 whole page, periodt π this little icon lives in ./include/linux, dated October 2026, and it's serving sbitmap_que...hallow_depth(9) energy all day long π§ββοΈβ¨ slay, go set your shallow depth correctly π
π¦ 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