kfifo_in_sp...ed_noirqsave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kfifo_in_spinlocked_noirqsave β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, you've got a fifo, you've got a spinlock, and you cannot be out here disabling interrupts. this page is literally your girl. it's kfifo_in_spinlocked_noirqsave(9) and she's here to help you put data into a fifo while locking with a spinlock and not disabling interrupts. no cap. ✨


🌸 NAME 🌸

kfifo_in_spinlocked_noirqsave β€” put data into fifo using a spinlock for locking, don't disable interrupts πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

kfifo_in_spinlocked_noirqsave (fifo , buf , n , lock );

like. that's the whole vibe. four things, in that order, periodt. πŸ’…


✨ ARGUMENTS ✨

  • fifo β€” address of the fifo to be used. yes bestie the address, hand her over 🫢
  • buf β€” the data to be added. this is the actual stuff going in πŸŽ€
  • n β€” number of elements to be added. count 'em, don't guess πŸ”’
  • lock β€” pointer to the spinlock to use for locking. pointer!! not the lock itself, iykyk πŸ”’

πŸ”₯ DESCRIPTION πŸ”₯

so this one is a variant of kfifo_in_spinlocked, okay? the whole personality of this function is that it uses spin_lock/unlock for locking and it doesn't disable interrupts. that's the entire thing. that's the character arc. 😌

if you were looking for the interrupt-disabling experience, this is not that girl β€” go read the other one. this one keeps interrupts living their best life. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./include/linux/kfifo.h β€” the whole kfifo cinematic universe lives here, and honestly? she ate. highkey obsessed. 🌈

like, read them all. it's giving syllabus. πŸ“š


πŸ’€ friendly little vibe check: the whole point of this function is that it does not disable interrupts β€” so make sure that's actually what you want before you commit, bestie. πŸ™ˆ

aaaand that's the page!! πŸ“ it lives under ./include/linux and the manual's dated October 2026 β€” so yeah, mark your calendar, this info's literally from the future. πŸ§šπŸ’œ go forth and fifo responsibly, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from