kfifo_reset(9)
π kfifo_reset(9) β Kernel API Manual, group-chat edition π
πΈ NAME πΈ
kfifo_reset β removes the entire fifo content. Thatβs the whole assignment, and honestly? It ate. π
The fifo content is gone, bestie. Entirely.
β¨ SYNOPSIS β¨
kfifo_reset (fifo );
Lowkey the whole call is right there β yes, with fifo in the parentheses. π
π«Ά ARGUMENTS π«Ά
fifoβ address of the fifo to be used. Like, the actual address. No cap. π¦
π¨ NOTE π¨
π¨ DANGER, DANGER, BESTIE: usage ofkfifo_resetis dangerous. It should be only called when the fifo isexclusived lockedor when it is secured that no other thread is accessing the fifo. This is not a drill, and it is definitely not a βyeet it and hopeβ situation. π
π SEE ALSO π
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_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(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)
Okay thatβs the page, bestie. Stay safe, lock that fifo, and hydrate. π Source/version: ./include/linux; date: October 2026; page: kfifo_reset(9). π
π¦ 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