kfifo_is_em...ed_noirqsave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

kfifo_is_empty_spinlocked_noirqsave β€” so bestie, this one returns true if the fifo is empty, and it uses a spinlock for locking, and it doesn't disable interrupts. That's the whole vibe. 🫢

(Also hi, welcome to the Kernel API Manual ✨ β€” this is the page for kfifo_is_em...ed_noirqsave(9), yes the name is abridged with the dots and no, we don't make the rules.)


✨ SYNOPSIS ✨

kfifo_is_empty_spinlocked_noirqsave (fifo , lock );

Like, that's it. Two things. You pass them in, it tells you if the fifo's empty. Iconic minimalism. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fifo β€” address of the fifo to be used. It's a fifo, it's an address, you point at it, that's the situation. πŸ“
  • lock β€” spinlock to be used for locking. Gotta bring your own lock, we are not providing one, that's a you problem (affectionately). πŸ”’
no cap: the _noirqsave in the name is doing real work here β€” this variant doesn't disable interrupts. So like, be normal about where you call it, okay? 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Okay so this is the part where the manpage goes feral and lists basically the entire cast of the kfifo cinematic universe 🌈 β€” main character energy from top to bottom:

Like, go read all of them, I'll wait. πŸ’œ


mwah πŸ’‹ that's a wrap β€” this page lives in ./include/linux, dated October 2026, and it's serving you straight from the Kernel API Manual. drink water, lock your spinlocks, and stay empty (the fifo, not you) πŸ§šπŸ’–

πŸ“¦ where this page comes from