srcu_dereference(9)
πΈ 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 thesrcu_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:
get_completed_synchronize_srcu(9)same_state_synchronize_srcu(9)srcu_read_lock_held(9)srcu_dereference_check(9)srcu_dereference_notrace(9)srcu_read_lock(9)srcu_read_lock_fast(9)srcu_read_lock_fast_updown(9)srcu_down_read_fast(9)srcu_read_lock_nmisafe(9)srcu_down_read(9)srcu_read_unlock(9)srcu_read_unlock_fast(9)srcu_read_unlock_fast_updown(9)srcu_up_read_fast(9)srcu_read_unlock_nmisafe(9)srcu_up_read(9)smp_mb__after_srcu_read_unlock(9)smp_mb__after_srcu_read_lock(9)
mwah π that's the page, bestie. footer shoutout: ./include/linux, October 2026, and srcu_dereference(9) β periodt. π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms