]> sourceware.org Git - systemtap.git/commitdiff
Add hlist macros for use by hlist_add_tail_rcu
authorStan Cox <scox@redhat.com>
Wed, 2 Jun 2021 17:37:45 +0000 (13:37 -0400)
committerStan Cox <scox@redhat.com>
Wed, 2 Jun 2021 17:37:45 +0000 (13:37 -0400)
runtime/task_finder_vma.c

index 7d8e11be9a632a8977ebcc28beed10be2d59c362..965bbdae40376977255be0cfaac83d8d838b8ba9 100644 (file)
@@ -23,6 +23,9 @@ static inline bool atomic_try_cmpxchg(atomic_t *v, int *old, int new)
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
 // Added in linux 4.7, backported to rhel 7, not present in rhel 6
+#define hlist_first_rcu(head)   (*((struct hlist_node __rcu **)(&(head)->first)))
+#define hlist_next_rcu(node)    (*((struct hlist_node __rcu **)(&(node)->next)))
+
 static inline void hlist_add_tail_rcu(struct hlist_node *n,
                                           struct hlist_head *h)
 {
This page took 0.029934 seconds and 5 git commands to generate.