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 <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Signed-off-by: Steven "frustrated" Rostedt <[email protected]>

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__ */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to