kfifo_out_sp...ed_noirqsave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kfifo_out_sp...ed_noirqsave (9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, you've got a fifo, you've got data, and you need it out β€” but you also don't want to be rude and turn off interrupts for the whole class. yeah. this function is literally that girl. welcome to the group chat. βœ¨πŸ¦‹


🌸 NAME 🌸

kfifo_out_spinlocked_noirqsave β€” grab data out of the fifo while using a spinlock for locking, and don't disable interrupts. no cap, that's the whole vibe. πŸ’–


⭐ SYNOPSIS ⭐

kfifo_out_spinlocked_noirqsave (fifo , buf , n , lock );

like, that's it. four args. she's lowkey minimal. πŸŽ€


🧚 ARGUMENTS 🧚

  • fifo β€” the address of the fifo you're working with. the main character, obvi. πŸ‘‘
  • buf β€” pointer to the storage buffer, aka where the goods are gonna land. πŸ“
  • n β€” max. number of elements to get. maximum, bestie β€” she will not exceed it. πŸ™ˆ
  • lock β€” pointer to the spinlock you're using for locking. she needs her security blanket. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: this is a variant of kfifo_out_spinlocked. the way that it differs? it uses spin_lock/unlock for locking, and it does not disable interrupts.

that's it. that's the whole personality. highkey iconic for exactly one reason and we respect it. πŸ«ΆπŸ’œ


🌈 SEE ALSO 🌈

all the siblings, cousins, and extended family live in the kernel file ./include/linux/kfifo.h β€” go say hi:


ngl this one is short and sweet, but the family tree is thriving. iykyk. 🌸

okay that's the page!! mwah πŸ’‹ this lil doc came from ./include/linux, dated October 2026, and yeah β€” that's the source/version and date, so we're shouting them out properly at the very end like the good little citation-besties we are. periodt. πŸ’…βœ¨πŸŽ€πŸ¦‹πŸ’–πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ“πŸ§šπŸ’œπŸ«Ά

πŸ“¦ where this page comes from