Fix: add hlist lttng wrappers
[deliverable/lttng-modules.git] / wrapper / list.h
index 0d79e5128c7b36555fee4a266d24a99a2550054a..25e804069b71dd01f457c48b58cbc8c4e3022c50 100644 (file)
 #include <linux/list.h>
 #include <linux/rculist.h>
 
+/*
+ * return the first or the next element in an RCU protected hlist
+ */
+#define lttng_hlist_first_rcu(head)    (*((struct hlist_node __rcu **)(&(head)->first)))
+#define lttng_hlist_next_rcu(node)     (*((struct hlist_node __rcu **)(&(node)->next)))
+#define lttng_hlist_pprev_rcu(node)    (*((struct hlist_node __rcu **)((node)->pprev)))
+
 #define lttng_hlist_entry_safe(ptr, type, member) \
        ({ typeof(ptr) ____ptr = (ptr); \
           ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
This page took 0.041016 seconds and 5 git commands to generate.