table of contents
other versions
COND_SYNCHRONIZE_RCU(9) | Driver Basics | COND_SYNCHRONIZE_RCU(9) |
NAME¶
cond_synchronize_rcu - Conditionally wait for an RCU grace periodSYNOPSIS¶
void
cond_synchronize_rcu(unsigned long oldstate);
ARGUMENTS¶
oldstatereturn value from earlier call to
get_state_synchronize_rcu
DESCRIPTION¶
If a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu, just return. Otherwise, invoke synchronize_rcu to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for one additional grace period should be just fine.COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |