kfifo_out_spinlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ kfifo_out_spinlocked πŸ’…

okay so real talk bestie, this is a page from the Kernel API Manual and it's about snatching data out of a fifo β€” but like, safely, with a spinlock doing the bouncer duty πŸŽ€


✨ NAME ✨

kfifo_out_spinlocked β€” get data from the fifo using a spinlock for locking πŸ”’


🌸 SYNOPSIS 🌸

kfifo_out_spinlocked (fifo , buf , n , lock );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • fifo β€” the address of the fifo you're gonna use, like, the actual fifo in question πŸ’–
  • buf β€” pointer to the storage buffer, aka where the good stuff lands πŸŽ€
  • n β€” max. number of elements to get πŸ”₯ (max, bestie β€” that's the ceiling, ngl)
  • lock β€” pointer to the spinlock to use for locking πŸ”’ periodt

πŸ’œ DESCRIPTION πŸ’œ

This macro gets the data from the fifo and returns the numbers of elements copied. that's it, that's the whole vibe ✨ like she's literally just here to hand you your data and tell you how much she gave you 😭


🫢 SEE ALSO 🫢

Kernel file ./include/linux/kfifo.h β€” and honestly the whole kfifo friend group showed up, we love a supportive ensemble cast πŸ‘‘


and that's the whole page, bestie 🧚 mwah πŸ’‹

tiny sign-off corner: this one lives at ./include/linux and the version/date stamp is October 2026 🌈 go forth and dequeue responsibly πŸ’…βœ¨
πŸ“¦ where this page comes from