提交 c386e29d 编写于 作者: liulangrenaaa's avatar liulangrenaaa 提交者: Paul E. McKenney

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: liulangrenaaa's avatarHui Su <sh_def@163.com>
Signed-off-by: NPaul E. McKenney <paulmck@kernel.org>
上级 a1b9dbb7
...@@ -497,8 +497,7 @@ long -- there might be other high-priority work to be done. ...@@ -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(). In such cases, one uses call_rcu() rather than synchronize_rcu().
The call_rcu() API is as follows:: The call_rcu() API is as follows::
void call_rcu(struct rcu_head * head, void call_rcu(struct rcu_head *head, rcu_callback_t func);
void (*func)(struct rcu_head *head));
This function invokes func(head) after a grace period has elapsed. This function invokes func(head) after a grace period has elapsed.
This invocation might happen from either softirq or process context, This invocation might happen from either softirq or process context,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册