• Home
  • Raw
  • Download

Lines Matching full: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) in list_add() argument
75 __list_add(new, head, head->next); in list_add()
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) in list_add_tail() argument
88 __list_add(new, head->prev, head); in list_add_tail()
120 * @head: the head for your list.
127 #define __list_for_each(pos, head) \ argument
128 for (pos = (head)->next; pos != (head); pos = pos->next)
134 * @head: the head for your list.
136 #define list_for_each_safe(pos, n, head) \ argument
137 for (pos = (head)->next, n = pos->next; pos != (head); \
163 * @head: the list to test.
165 static inline int list_empty(const struct list_head *head) in list_empty() argument
167 return head->next == head; in list_empty()
172 * @head: the list
174 static inline struct list_head *list_first(const struct list_head *head) in list_first() argument
176 return list_empty(head) ? NULL : head->next; in list_first()
182 * @head: the head that will follow our entry
185 struct list_head *head) in list_move_tail() argument
188 list_add_tail(list, head); in list_move_tail()
192 struct list_head *head) in __list_splice() argument
196 struct list_head *at = head->next; in __list_splice()
198 first->prev = head; in __list_splice()
199 head->next = first; in __list_splice()
208 * * @head: the place to add it in the first list.
210 static inline void list_splice(struct list_head *list, struct list_head *head) in list_splice() argument
213 __list_splice(list, head); in list_splice()