__sbitmap_queue_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


🫢 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