kfifo_out_spinlocked(9)
β¨ kfifo_out_spinlocked π
okay so real talk bestie, this is a page from the Kernel API Manual and it's about snatching data out of a fifo β but like, safely, with a spinlock doing the bouncer duty π
β¨ NAME β¨
kfifo_out_spinlocked β get data from the fifo using a spinlock for locking π
πΈ SYNOPSIS πΈ
kfifo_out_spinlocked (fifo , buf , n , lock );
π¦ ARGUMENTS π¦
fifoβ the address of the fifo you're gonna use, like, the actual fifo in question πbufβ pointer to the storage buffer, aka where the good stuff lands πnβ max. number of elements to get π₯ (max, bestie β that's the ceiling, ngl)lockβ pointer to the spinlock to use for locking π periodt
π DESCRIPTION π
This macro gets the data from the fifo and returns the numbers of elements copied. that's it, that's the whole vibe β¨ like she's literally just here to hand you your data and tell you how much she gave you π
π«Ά SEE ALSO π«Ά
Kernel file ./include/linux/kfifo.h β and honestly the whole kfifo friend group showed up, we love a supportive ensemble cast π
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_empty_spinlocked_noirqsave(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_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)
and that's the whole page, bestie π§ mwah π
tiny sign-off corner: this one lives at ./include/linux and the version/date stamp is October 2026 π go forth and dequeue responsibly π
β¨
π¦ 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