sbitmap_queue_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


mwah πŸ’‹ this page's source/version is ./include/linux, dated October 2026 β€” iconic, no cap. 🌈⭐

πŸ“¦ where this page comes from