diff options
author | Hui Su <sh_def@163.com> | 2020-10-15 17:13:34 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-11-07 04:02:43 +0300 |
commit | c386e29d43728778ddd642fa73cc582bee684171 (patch) | |
tree | 584ddb213fd2a7883b5bff7d3e743d0b5a50319c /Documentation/RCU/whatisRCU.rst | |
parent | a1b9dbb72b7f39eeaa2fb5bd5cc619679985876e (diff) | |
download | linux-c386e29d43728778ddd642fa73cc582bee684171.tar.xz |
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: Hui Su <sh_def@163.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Documentation/RCU/whatisRCU.rst')
-rw-r--r-- | Documentation/RCU/whatisRCU.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/RCU/whatisRCU.rst b/Documentation/RCU/whatisRCU.rst index fb3ff76c3e73..1a4723f48bd9 100644 --- a/Documentation/RCU/whatisRCU.rst +++ b/Documentation/RCU/whatisRCU.rst @@ -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, |