Skip to contentSkip to conversation

doc/rcu: fix g_free_rcu() usage example

PATCH In review Sergey Fedorov 2 participants 2 messages Oct 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 docs/rcu.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/rcu.txt +1 -1
index 21ecb81..2f70954 100644
@@ -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);
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 16 lines · Sergey Fedorov

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.

---
 docs/rcu.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/rcu.txt +0 -0
index 21ecb81..2f70954 100644

docs/rcu.txt The core RCU API is small: · line 134

Quoted 8 lines
docs/rcu.txt +1 -1
@@ -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);
 

Thanks, I've queued this patch, and I hope to send it out on Friday.

Paolo