sbitmap_queue_get(9)
π sbitmap_queue_get(9) π
okay bestie, welcome to the Kernel API Manual β this is the page for sbitmap_queue_get, and it's giving βplease give me one free bitβ energy. π
β¨ NAME β¨
sbitmap_queue_get β tries to allocate a free bit from a &struct sbitmap_queue. slay. π
π SYNOPSIS π
int sbitmap_queue_get (struct sbitmap_queue *sbq , unsigned int *cpu );
πΈ ARGUMENTS πΈ
sbqβ the bitmap queue you're allocating from, bestie. that's the source of the bits.cpuβ output parameter; it will contain the CPU we ran on (e.g., to be passed tosbitmap_queue_clear). so it's not input, it's literally the receipt. π§Ύβ¨
π RETURN π
if it works, you get a non-negative allocated bit number. if not, you get -1. that's the whole vibe check. ππ
π¦ SEE ALSO π¦
Kernel file ./include/linux/sbitmap.h β and the whole iconic friend group:
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_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)
mwah π this page's source/version is ./include/linux, dated October 2026 β iconic, no cap. πβ
π¦ 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