| #include <linux/stddef.h> |
| #include <linux/poison.h> |
| #include <linux/prefetch.h> |
| static inline void INIT_XLIST_HEAD(struct xlist_head *list) |
| static inline int xlist_empty(struct xlist_head *head) |
| return head->next == NULL; |
| static inline void xlist_add(struct xlist_head *new, struct xlist_head *tail, |
| struct xlist_head *check; |
| check = cmpxchg(&head->next, cur, new); |
| static inline struct xlist_head *xlist_del_head(struct xlist_head *head) |
| struct xlist_head *check; |
| check = cmpxchg(&head->next, cur, next); |
| static inline struct xlist_head *xlist_del_head_fast(struct xlist_head *head) |
| static inline void xlist_splice(struct xlist_head *list, |
| cur = xchg(&list->next, NULL); |