Lines Matching defs:head
68 * @head: list head to add it after
70 * Insert a new entry after the specified head.
73 static inline void list_add(struct list_head *new, struct list_head *head)
75 __list_add(new, head, head->next);
81 * @head: list head to add it before
83 * Insert a new entry before the specified head.
86 static inline void list_add_tail(struct list_head *new, struct list_head *head)
88 __list_add(new, head->prev, head);
117 * @head: the list to test.
119 static inline int list_empty(struct list_head *head)
121 return head->next == head;
136 * @head: the head for your list.
138 #define list_for_each(pos, head) \
139 for (pos = (head)->next; pos != (head); pos = pos->next)
145 * @head: the head for your list.
147 #define list_for_each_safe(pos, n, head) \
148 for (pos = (head)->next, n = pos->next; pos != (head); \