Lines Matching refs:head
66 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
68 #define SLIST_FIRST(head) ((head)->slh_first) argument
70 #define SLIST_FOREACH(var, head, field) \ argument
71 for ((var) = SLIST_FIRST((head)); \
75 #define SLIST_INIT(head) do { \ argument
76 SLIST_FIRST((head)) = NULL; \
84 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
85 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
86 SLIST_FIRST((head)) = (elm); \
91 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
92 if (SLIST_FIRST((head)) == (elm)) { \
93 SLIST_REMOVE_HEAD((head), field); \
96 struct type *curelm = SLIST_FIRST((head)); \
104 #define SLIST_REMOVE_HEAD(head, field) do { \ argument
105 SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field); \