kfifo_initialized(9)
π kfifo_initialized(9) β the Kernel API Manual, bestie edition π
Okay so we're deep in the kernel API manual today, specifically kfifo_initialized, and honestly? She's a little icon. Small, focused, does exactly one thing. Main character energy of a function, no cap.
β¨ NAME β¨
kfifo_initialized β check if the fifo is initialized π¦
πΈ SYNOPSIS πΈ
kfifo_initialized (fifo );
That's it. That's the whole vibe. One argument, one answer. Periodt.
π ARGUMENTS π
fifoβ the address of the fifo you wanna check. Like, hand her the address and she'll tell you what's up π«Ά
β DESCRIPTION β
So here's the tea: this one returns true if fifo is initialized, and false otherwise. That's the whole gig. Literally just a vibe check for your fifo π₯
β οΈ Important caveat, don't skip this: it assumes the fifo was 0 before. So like, if you didn't zero it out first, bestie, the answer is not gonna be trustworthy π No cap, that assumption is load-bearing.
π SEE ALSO π
The kernel file over at ./include/linux/kfifo.h β that's the mothership, go say hi π§
And then the whole friend group, fr fr:
DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(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, the entire kfifo squad showed up to the group chat. Slay π
And that's the page, babes! π This little drop came to you courtesy of ./include/linux, dated October 2026 β go follow the source, she's iconic π
β¨
π¦ 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