Commit c386e29d authored by Hui Su's avatar Hui Su Committed by Paul E. McKenney
Browse files

docs/rcu: Update the call_rcu() API



This commit updates the documented API of call_rcu() to use the
rcu_callback_t typedef instead of the open-coded function definition.

Signed-off-by: default avatarHui Su <sh_def@163.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent a1b9dbb7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -497,8 +497,7 @@ long -- there might be other high-priority work to be done.
In such cases, one uses call_rcu() rather than synchronize_rcu().
The call_rcu() API is as follows::

	void call_rcu(struct rcu_head * head,
		      void (*func)(struct rcu_head *head));
	void call_rcu(struct rcu_head *head, rcu_callback_t func);

This function invokes func(head) after a grace period has elapsed.
This invocation might happen from either softirq or process context,