kfifo_size(9)
β¨ kfifo_size(9) β¨
ok so this is a page from the Kernel API Manual (yes, the kfifo_size(9) one, bestie, you found it π
) and it's honestly short and sweet β we're literally just asking a fifo how big it is. that's it. that's the whole vibe check. π
πΈ NAME πΈ
kfifo_size β returns the size of the fifo in elements
like, the capacity, not how much is currently chilling inside it. size. elements. boom. β¨
π¦ SYNOPSIS π¦
kfifo_size (fifo );
(that trailing space before the ) is exactly how the page has it, no i am not fixing it, it's canon now π)
π ARGUMENTS π
fifoβ address of the fifo to be used π«Ά
that's the whole argument list. one (1) fifo address. she's low maintenance. we stan. π
π SEE ALSO π
ok this is the part where the page goes absolutely feral and lists the entire kfifo extended universe, so buckle up bestie, we're going through all of it, and also peep the kernel file it lives in: ./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_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_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)
forty whole entries. she ate and left no crumbs. π₯
ngl, if you got here looking for one specific thing, the answer is probably in that list somewhere. iykyk. π
and that's the page!! πΈ source/version is ./include/linux, dated October 2026 β so go forth, call kfifo_size, know your element count, and slay π
β¨ bye bestie!! π«Άπ
π¦ 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