sbitmap_queue_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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