sbitmap_queue_resize(9)
β¨ sbitmap_queue_resize(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a tiny little function page but it's lowkey important, so let's get into it π«Ά
πΈ NAME πΈ
sbitmap_queue_resize β resizing a &struct sbitmap_queue, that's the whole vibe π«
π¦ SYNOPSIS π¦
void sbitmap_queue_resize (struct sbitmap_queue *sbq , unsigned int
depth );
like, it returns nothing (void), takes your sbq and a depth, and that's it. no cap. β¨
π ARGUMENTS π
sbqβ the bitmap queue you're resizing, bestie. this is the main character here πdepthβ the new number of bits you're resizing it to. that's the number, that's the goal π―
π DESCRIPTION π
okay so literally, this is like sbitmap_resize β it does not reallocate anything, periodt. nothing new gets malloc'd, nothing gets freed, we're just changing the numbers π
but here's the tea π₯: sbitmap_queue_resize has to do some extra work on the struct sbitmap_queue itself, so it is not safe to just go and resize the underlying struct sbitmap on your own. like, do not try it. that's the whole point of this function existing. use this one, not the sneaky shortcut π
π SEE ALSO π
the whole friend group, gathered for you π«Ά
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_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!! π this lil gem lives in ./include/linux and it's dated October 2026 β so like, future vibes only β go resize something responsibly ππ
π¦ 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