kfifo_is_em...ed_noirqsave(9)
π 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:
- Kernel file
./include/linux/kfifo.h DECLARE_KFIFO_PTR(9)DECLARE_KFIFO(9)INIT_KFIFO(9)DEFINE_KFIFO(9)kfifo_initialized(9)kfifo_esize(9)kfifo_recsize(9)kfifo_size(9)kfifo_reset(9)kfifo_reset_out(9)kfifo_len(9)kfifo_is_empty(9)kfifo_is_empty_spinlocked(9)kfifo_is_full(9)kfifo_avail(9)kfifo_skip_count(9)kfifo_skip(9)kfifo_peek_len(9)kfifo_alloc(9)kfifo_alloc_node(9)kfifo_free(9)kfifo_init(9)kfifo_put(9)kfifo_get(9)kfifo_peek(9)kfifo_in(9)kfifo_in_spinlocked(9)kfifo_in_spinlocked_noirqsave(9)kfifo_out(9)kfifo_out_spinlocked(9)kfifo_out_spinlocked_noirqsave(9)kfifo_from_user(9)kfifo_to_user(9)kfifo_dma_in_prepare_mapped(9)kfifo_dma_in_finish(9)kfifo_dma_out_prepare_mapped(9)kfifo_dma_out_finish(9)kfifo_out_peek(9)kfifo_out_linear(9)kfifo_out_linear_ptr(9)
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
- 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