srcu_read_unlock_nmisafe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… srcu_read_unlock_nmisafe β€” bestie's guide to leaving the SRCU party (NMI edition) πŸŽ€

okay so this is srcu_read_unlock_nmisafe(9), from the Kernel API Manual (section 9, kernel devs only, sorry babe), and it's literally the "ok I'm done, let me out" move for SRCU readers. ✨


✨ NAME ✨

srcu_read_unlock_nmisafe β€” unregister a old reader from an SRCU-protected structure.

(and yes, the original says "a old reader" β€” I'm not fixing it, that's the canon, we respect the lore 🫢)


🌸 SYNOPSIS 🌸

void srcu_read_unlock_nmisafe (struct srcu_struct *ssp , int idx );

like, that's the whole vibe check right there. returns void, takes two things, done. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ssp β€” the srcu_struct in which to unregister the old reader. this is the guest list you're removing your name from, bestie 🎟️
  • idx β€” the return value from the corresponding srcu_read_lock_nmisafe. you gotta hand back the exact little token they gave you when you walked in β€” no swapping, no losing it, that's the whole point πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

Exit an SRCU read-side critical section, but in an NMI-safe manner. πŸ”₯

that's it, that's the tea. you're leaving the read-side critical section, and you're doing it the NMI-safe way, which is the whole entire reason this function exists separately from the normie srcu_read_unlock(9). main character energy, non-maskable-interrupt-proof edition πŸ‘‘ no cap.


⭐ SEE ALSO ⭐

like, the whole SRCU friend group is in here β€” go say hi to all of them, they're all icons πŸ§šπŸ’œ


that's a wrap, bestie! 🌈 this page came straight out of the ./include/linux corner of the kernel, dated October 2026, and it's filed under Kernel API Manual section 9. slay, stay NMI-safe, and always return your idx πŸ“πŸ’€βœ¨

πŸ“¦ where this page comes from