RCU_POINTER_INITIALIZER(9)
π 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 π:
same_state_synchronize_rcu(9)cond_resched_tasks_rcu_qs(9)rcu_softirq_qs_periodic(9)RCU_LOCKDEP_WARN(9)lockdep_assert_in_rcu_read_lock(9)lockdep_assert_in_rcu_read_lock_bh(9)lockdep_assert_in_rcu_read_lock_sched(9)lockdep_assert_in_rcu_reader(9)unrcu_pointer(9)RCU_INITIALIZER(9)rcu_assign_pointer(9)rcu_replace_pointer(9)rcu_access_pointer(9)rcu_dereference_check(9)rcu_dereference_bh_check(9)rcu_dereference_sched_check(9)rcu_dereference_all_check(9)rcu_dereference_protected(9)rcu_dereference(9)rcu_dereference_bh(9)rcu_dereference_sched(9)rcu_dereference_all(9)rcu_pointer_handoff(9)rcu_read_lock(9)rcu_read_unlock(9)rcu_read_lock_bh(9)rcu_read_unlock_bh(9)rcu_read_lock_sched(9)rcu_read_unlock_sched(9)RCU_INIT_POINTER(9)kfree_rcu(9)kfree_rcu_mightsleep(9)kfree_rcu_nolock(9)rcu_head_init(9)rcu_head_after_call_rcu(9)
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
- 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