DECLARE_KFIFO_PTR(9)
π« DECLARE_KFIFO_PTR(9) π«
okay bestie, welcome to the Kernel API Manual β yes, the whole manual, we're just here for one page, but she's iconic so it's fine π
β¨ NAME β¨
DECLARE_KFIFO_PTR β the macro that declares a fifo pointer object. literally that's her whole job and she does it slayfully π
π¦ SYNOPSIS π¦
DECLARE_KFIFO_PTR (fifo , type );
that's it. that's the whole vibe. two little arguments and you're done, no cap β¨
πΈ ARGUMENTS πΈ
fifoβ the name you're giving your declared fifo. yes, you get to pick it, main character naming rights fr fr πtypeβ the type of the fifo elements. like, what kind of stuff is actually living inside her π
π SEE ALSO π
okay so this is the part where she name-drops her entire friend group and honestly? obsessed. first up, the source file herself:
Kernel file ./include/linux/kfifo.h β go say hi, she has lore π
and now the whole squad, in order, because we do not skip people in this group chat:
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_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)
like, forty whole references. she's connected. iykyk π
ngl the _noirqsave ones are giving "i have a very specific use case" and we respect it π
and that's the page, bestie β courtesy of ./include/linux, dated October 2026, filed under DECLARE_KFIFO_PTR(9). go forth and declare your pointers, mwah ππ«Άβ
π¦ 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