kfifo_reset_out(9)
β¨ kfifo_reset_out β¨
okay so bestie, welcome to the kfifo_reset_out(9) page β straight out of the Kernel API Manual, no cap π
πΈ NAME πΈ
kfifo_reset_out β skip fifo content
like, it literally just skips the content of the fifo. that's the whole vibe π¦
π SYNOPSIS π
kfifo_reset_out (fifo );
yes that trailing space and semicolon are real, copy it exactly, don't come for me π
π ARGUMENTS π
fifoβ address of the fifo to be used π give it the address of the fifo you're working with, that's it, that's the whole argument.
β οΈ NOTE β οΈ
okay so pay attention here because this one's got conditions π«Ά
the usage of kfifo_reset_out is safe until it will be only called from the reader thread β and there is only one concurrent reader.
otherwise? it is dangerous π and must be handled in the same way as kfifo_reset. periodt.
no cap β if you've got more than one reader or you're calling it from somewhere that isn't the reader thread, you're in dangerous territory and you need to do the kfifo_reset treatment. don't skip the vibe check on this one π
π SEE ALSO π
the whole kfifo friend group, all linked from Kernel file ./include/linux/kfifo.h β literally iconic, every single one:
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_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(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, go skip some fifo content responsibly π
this little cutie lives in ./include/linux and the version/date stamp on it is October 2026 β so you know it's fresh β¨ mwah, bye π
π¦ 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