DECLARE_KFIFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ DECLARE_KFIFO ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a little macro that literally just declares a fifo object for you, no cap. Think of it as the birth certificate of your fifo πŸŽ€


🌸 NAME 🌸

DECLARE_KFIFO β€” macro to declare a fifo object πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

DECLARE_KFIFO (fifo , type , size );

πŸŽ€ ARGUMENTS πŸŽ€

  • fifo β€” the name of the declared fifo. this is what you're gonna call your baby πŸ’– pick something cute, or y'know, something descriptive, we don't judge.
  • type β€” the type of the fifo elements. like, what are you actually storing in here?? that's this. ✨
  • size β€” the number of elements in the fifo. and this must be a power of 2 πŸ‘‘ no exceptions, non-negotiable, do not come at me with your 3 or your 100, it's giving undefined behaviour energy and we don't do that here πŸ™ˆ
not me emphasizing this again β€” size has to be a power of 2, fr fr. that's the whole vibe check for this argument. πŸ”₯

πŸ’œ SEE ALSO πŸ’œ

that's a lot of siblings but they all slay in their own way, go check 'em out 🫢


mwah πŸ’‹ that's the page! this one lives in ./include/linux in the Kernel API Manual, and it was dated October 2026 β€” so like, technically from the future, main character energy fr ⭐ bye bestie, go declare some fifos ✨

πŸ“¦ where this page comes from