srcu_dereference(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 srcu_dereference(9) 🌸

okay bestie, welcome to the Kernel API Manual page for srcu_dereference β€” the little helper that grabs an SRCU-protected pointer so you can dereference it later. it's giving β€œfetch now, dereference later” energy, and honestly? iconic. πŸ’…


πŸ’– NAME πŸ’–

srcu_dereference β€” fetch SRCU-protected pointer for later dereferencing. no cap, that's the whole vibe. πŸ¦‹

✨ SYNOPSIS ✨

srcu_dereference (p , ssp );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the pointer to fetch and protect for later dereferencing. this is the main-character pointer, fr fr. 🫢
  • ssp β€” pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. it's the vibe-checker for your read-side critical section. πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

this one makes rcu_dereference_check do the dirty work. lowkey a delegation queen. ✨

⚠️ If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat. so yeah, that's the dramatic part β€” stay in your critical section, bestie, unless you want the splat. 😭

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/srcu.h β€” that's the home base. the whole squad is here:


mwah πŸ’‹ that's the page, bestie. footer shoutout: ./include/linux, October 2026, and srcu_dereference(9) β€” periodt. 🫢✨

πŸ“¦ where this page comes from