same_state_synchronize_rcu(9)
π NAME π
welcome to the Kernel API Manual, bestie β todayβs main character is same_state_synchronize_rcu (yes, the (9) is part of the whole vibe β¨), and the question on the table is: are two old-state values identical? π
π SYNOPSIS π
the whole mood, exactly as written:
bool same_state_synchronize_rcu (unsigned long oldstate1 , unsigned long
oldstate2 );
π¦ ARGUMENTS π¦
oldstate1β the first old-state value, bestie π«Άoldstate2β the second old-state value, no cap π
β¨ DESCRIPTION β¨
okay so hereβs the tea, and itβs actually simple: both old-state values must have been obtained from either get_state_synchronize_rcu, start_poll_synchronize_rcu, or get_completed_synchronize_rcu. thatβs the rule β not me making stuff up, itβs literally the requirement π
then the function returns true if the two values are identical and false otherwise. cute, right? itβs giving tiny bool energy.
this lets structures whose lifetimes are tracked by old-state values push these values to a list header, and that allows those structures to be slightly smaller. slay for memory efficiency, honestly πΈ
π SEE ALSO π
go read these too, bestie β all of them, in this exact order, because the lore is real:
- Kernel file
./include/linux/rcupdate.h 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)RCU_POINTER_INITIALIZER(9)kfree_rcu(9)kfree_rcu_mightsleep(9)kfree_rcu_nolock(9)rcu_head_init(9)rcu_head_after_call_rcu(9)
π thatβs the whole page, bestie β source/version ./include/linux, date October 2026, and the title stays same_state_synchronize_rcu(9) π
π¦ 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