RCU_POINTER_INITIALIZER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… RCU_POINTER_INITIALIZER(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes we're in the kernel today, and yes this one is a little macro with main character energy for approximately one line of code ✨


🌸 NAME 🌸

RCU_POINTER_INITIALIZER β€” statically initialize an RCU protected pointer 🫢


πŸŽ€ SYNOPSIS πŸŽ€

RCU_POINTER_INITIALIZER (p , v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • p β€” the pointer you're initializing, bestie. this is the one getting set up πŸ’…
  • v β€” the value you're initializing the pointer to ✨

⭐ DESCRIPTION ⭐

it's giving GCC-style initialization 🧚 for an RCU-protected pointer that lives in a structure field. that's the whole vibe. no cap, that's it β€” it's a static initializer, it does the initializing thing, and it does it in the style GCC expects for these pointer fields πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./include/linux/rcupdate.h β€” and like, the entire RCU extended universe, fr fr πŸ’–:


and that's the page, periodt πŸ’œ this little love letter came from ./include/linux, dated October 2026, and it's filed under RCU_POINTER_INITIALIZER(9) β€” go forth and statically initialize, icon πŸŽ€πŸ’–

πŸ“¦ where this page comes from