kfifo_dma_in_finish(9)
π kfifo_dma_in_finish(9) β the Kernel API Manual glow-up π
okay so this is a page straight out of the Kernel API Manual, bestie β it's kfifo_dma_in_finish(9) and it's lowkey the "and we're done here" moment for a DMA IN operation β¨
πΈ NAME
kfifo_dma_in_finish β finish a DMA IN operation π
π¦ SYNOPSIS
kfifo_dma_in_finish (fifo , len );
π ARGUMENTS
fifoβ address of the fifo to be used π¬ (like, the actual fifo you're working with, not a vibe)lenβ number of bytes to received π (yes it says "to received", we don't fix the ancestors' grammar, we just respect it)
π₯ DESCRIPTION
so this macro finishes a DMA IN operation β it's the closing credits, the final bow, the "ok we're done" text π«Ά The in counter gets updated by the len parameter, and that's literally it.
β οΈ no error checking will be done. none. zero. not a single check. it trusts you completely, which is either iconic or terrifying depending on your day π
and here's the little grace note: with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros π periodt. (that's the deal β just don't go adding more readers and writers and expect the same energy, iykyk)
π SEE ALSO
the whole kfifo cinematic universe lives in the kernel file ./include/linux/kfifo.h π and honestly? the friend group is huge. here's everyone:
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(9)kfifo_out_spinlocked_noirqsave(9)kfifo_from_user(9)kfifo_to_user(9)kfifo_dma_in_prepare_mapped(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 page!! π§π it came from ./include/linux, dated October 2026, and its whole full name is kfifo_dma_in_finish(9) β so go finish that DMA IN operation, bestie, you've got this π
β¨πΈ
π¦ 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