|
@@ -566,8 +566,8 @@ static inline void rcu_preempt_sleep_check(void) { }
|
|
* This is simply an identity function, but it documents where a pointer
|
|
* This is simply an identity function, but it documents where a pointer
|
|
* is handed off from RCU to some other synchronization mechanism, for
|
|
* is handed off from RCU to some other synchronization mechanism, for
|
|
* example, reference counting or locking. In C11, it would map to
|
|
* example, reference counting or locking. In C11, it would map to
|
|
- * kill_dependency(). It could be used as follows:
|
|
|
|
- * ``
|
|
|
|
|
|
+ * kill_dependency(). It could be used as follows::
|
|
|
|
+ *
|
|
* rcu_read_lock();
|
|
* rcu_read_lock();
|
|
* p = rcu_dereference(gp);
|
|
* p = rcu_dereference(gp);
|
|
* long_lived = is_long_lived(p);
|
|
* long_lived = is_long_lived(p);
|
|
@@ -578,7 +578,6 @@ static inline void rcu_preempt_sleep_check(void) { }
|
|
* p = rcu_pointer_handoff(p);
|
|
* p = rcu_pointer_handoff(p);
|
|
* }
|
|
* }
|
|
* rcu_read_unlock();
|
|
* rcu_read_unlock();
|
|
- *``
|
|
|
|
*/
|
|
*/
|
|
#define rcu_pointer_handoff(p) (p)
|
|
#define rcu_pointer_handoff(p) (p)
|
|
|
|
|