diff options
Diffstat (limited to 'kern/hlist.h')
-rw-r--r-- | kern/hlist.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kern/hlist.h b/kern/hlist.h index 0d5184b7..eec05bb5 100644 --- a/kern/hlist.h +++ b/kern/hlist.h @@ -264,7 +264,7 @@ for (entry = hlist_first_entry(list, typeof(*entry), member), \ static inline struct hlist_node * hlist_llsync_first(const struct hlist *list) { - return llsync_read_ptr(list->first); + return llsync_load_ptr(list->first); } /* @@ -273,7 +273,7 @@ hlist_llsync_first(const struct hlist *list) static inline struct hlist_node * hlist_llsync_next(const struct hlist_node *node) { - return llsync_read_ptr(node->next); + return llsync_load_ptr(node->next); } /* @@ -292,7 +292,7 @@ hlist_llsync_insert_head(struct hlist *list, struct hlist_node *node) first->pprev = &node->next; } - llsync_assign_ptr(list->first, node); + llsync_store_ptr(list->first, node); } /* @@ -304,7 +304,7 @@ hlist_llsync_insert_before(struct hlist_node *next, struct hlist_node *node) node->next = next; node->pprev = next->pprev; next->pprev = &node->next; - llsync_assign_ptr(*node->pprev, node); + llsync_store_ptr(*node->pprev, node); } /* @@ -320,7 +320,7 @@ hlist_llsync_insert_after(struct hlist_node *prev, struct hlist_node *node) node->next->pprev = &node->next; } - llsync_assign_ptr(prev->next, node); + llsync_store_ptr(prev->next, node); } /* @@ -333,7 +333,7 @@ hlist_llsync_remove(struct hlist_node *node) node->next->pprev = node->pprev; } - llsync_assign_ptr(*node->pprev, node->next); + llsync_store_ptr(*node->pprev, node->next); } /* @@ -341,7 +341,7 @@ hlist_llsync_remove(struct hlist_node *node) * given node based on the given type and member. */ #define hlist_llsync_entry(node, type, member) \ - structof(llsync_read_ptr(node), type, member) + structof(llsync_load_ptr(node), type, member) /* * Get the first entry of a list. |