lkml.org 
[lkml]   [2013]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] rcu: Make struct rcu_head searchable
After wasting too much time trying to see where struct rcu_head was
declared, I finally found it in include/linux/types.h as a define for
callback_head!

To prevent other developers from wasting their precious time in
searching for this structure, add a comment to help them find it!

Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Steven "frustrated" Rostedt <rostedt@goodmis.org>

diff --git a/include/linux/types.h b/include/linux/types.h
index 4d118ba..073e9a8 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -210,6 +210,9 @@ struct callback_head {
struct callback_head *next;
void (*func)(struct callback_head *head);
};
+/*
+ * Make "struct rcu_head {" seachable with this comment.
+ */
#define rcu_head callback_head

#endif /* __ASSEMBLY__ */

\
 
 \ /
  Last update: 2013-11-13 18:41    [W:0.049 / U:8.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site