Lines Matching refs:head
68 #define SLIST_EMPTY(head) ((head)->slh_first == NULL)
70 #define SLIST_FIRST(head) ((head)->slh_first)
72 #define SLIST_FOREACH(var, head, field) \
73 for ((var) = SLIST_FIRST((head)); \
77 #define SLIST_INIT(head) do { \
78 SLIST_FIRST((head)) = NULL; \
86 #define SLIST_INSERT_HEAD(head, elm, field) do { \
87 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
88 SLIST_FIRST((head)) = (elm); \
93 #define SLIST_REMOVE(head, elm, type, field) do { \
94 if (SLIST_FIRST((head)) == (elm)) { \
95 SLIST_REMOVE_HEAD((head), field); \
98 struct type *curelm = SLIST_FIRST((head)); \
106 #define SLIST_REMOVE_HEAD(head, field) do { \
107 SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field); \