__sbitmap_queue_get(9)
π NAME
__sbitmap_queue_get β bestie, this one tries to snag a free bit out of a &struct sbitmap_queue, and the whole catch is that preemption is already disabled when you call it. Like you gotta have your house in order first, ok? β¨
(also hi, this is from the Kernel API Manual, section 9 β kernel developer stuff, iykyk π)
πΈ SYNOPSIS
int __sbitmap_queue_get (struct sbitmap_queue *sbq );
π¦ ARGUMENTS
sbqβ the bitmap queue you're allocating from. That's it. That's the whole argument. She's low maintenance. π
β RETURN
If it slays: you get back the non-negative allocated bit number. π₯
If it does not slay: -1. That's it, that's the whole mood. π
π SEE ALSO
Kernel file ./include/linux/sbitmap.h, plus the whole entire 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_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)
π«Ά friendly reminder bestie: preemption disabled before you call this one. If you didn't do that part, that's on you and not on me π
okay that's the whole page, mwah π This little gem lives in ./include/linux, dated October 2026, and it's filed under __sbitmap_queue_get(9). Go get that bit, queen. πβ¨
π¦ 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