diff options
author | Sergey Fedorov <serge.fdrv@gmail.com> | 2015-10-14 18:46:44 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-19 10:13:07 +0200 |
commit | 9bda456e419273199221625894003bf9307d8451 (patch) | |
tree | 498dd2f38dfa12e59ac6dd93206a143e66f3b0bf /docs/rcu.txt | |
parent | 1c3af0f4f04bd6e6729783a48bb51ca1eb5c3baf (diff) | |
download | qemu-9bda456e419273199221625894003bf9307d8451.zip qemu-9bda456e419273199221625894003bf9307d8451.tar.gz qemu-9bda456e419273199221625894003bf9307d8451.tar.bz2 |
doc/rcu: fix g_free_rcu() usage example
The first argument of g_free_rcu() is a pointer to a structure. But
foo_reclaim is used as a function name in the previous example along
with &foo as a pointer to the structure being reclaimed. Make the
example consistent with the previous one.
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Message-Id: <1444837604-13712-1-git-send-email-serge.fdrv@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/rcu.txt')
-rw-r--r-- | docs/rcu.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/rcu.txt b/docs/rcu.txt index 21ecb81..2f70954 100644 --- a/docs/rcu.txt +++ b/docs/rcu.txt @@ -128,7 +128,7 @@ The core RCU API is small: the callback function is g_free, in particular, g_free_rcu can be used. In the above case, one could have written simply: - g_free_rcu(foo_reclaim, rcu); + g_free_rcu(&foo, rcu); typeof(*p) atomic_rcu_read(p); |