• Home
  • Raw
  • Download

Lines Matching full:head

5 …ernel.org/?p=linux/kernel/git/stable/linux-2.6.25.y.git;a=blob_plain;f=include/linux/list.h;hb=HEAD
57 * @head: list head to add it after
59 * Insert a new entry after the specified head.
62 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
64 __list_add(new, head, head->next); in list_add()
72 * @head: list head to add it before
74 * Insert a new entry before the specified head.
77 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
79 __list_add(new, head->prev, head); in list_add_tail()
143 * list_move - delete from one list and add as another's head
145 * @head: the head that will precede our entry
147 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
150 list_add(list, head); in list_move()
156 * @head: the head that will follow our entry
159 struct list_head *head) in list_move_tail() argument
162 list_add_tail(list, head); in list_move_tail()
166 * list_is_last - tests whether @list is the last entry in list @head
168 * @head: the head of the list
171 const struct list_head *head) in list_is_last() argument
173 return list->next == head; in list_is_last()
178 * @head: the list to test.
180 static inline int list_empty(const struct list_head *head) in list_empty() argument
182 return head->next == head; in list_empty()
187 * @head: the list to test
198 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful() argument
200 struct list_head *next = head->next; in list_empty_careful()
201 return (next == head) && (next == head->prev); in list_empty_careful()
205 struct list_head *head) in __list_splice() argument
209 struct list_head *at = head->next; in __list_splice()
211 first->prev = head; in __list_splice()
212 head->next = first; in __list_splice()
221 * @head: the place to add it in the first list.
223 static inline void list_splice(struct list_head *list, struct list_head *head) in list_splice() argument
226 __list_splice(list, head); in list_splice()
232 * @head: the place to add it in the first list.
237 struct list_head *head) in list_splice_init() argument
240 __list_splice(list, head); in list_splice_init()
256 * @ptr: the list head to take the element from.
268 * @head: the head for your list.
270 #define list_for_each(pos, head) \ argument
271 for (pos = (head)->next; pos != (head); \
277 * @head: the head for your list.
284 #define __list_for_each(pos, head) \ argument
285 for (pos = (head)->next; pos != (head); pos = pos->next)
290 * @head: the head for your list.
292 #define list_for_each_prev(pos, head) \ argument
293 for (pos = (head)->prev; pos != (head); \
300 * @head: the head for your list.
302 #define list_for_each_safe(pos, n, head) \ argument
303 for (pos = (head)->next, n = pos->next; pos != (head); \
310 * @head: the head for your list.
312 #define list_for_each_prev_safe(pos, n, head) \ argument
313 for (pos = (head)->prev, n = pos->prev; \
314 pos != (head); \
320 * @head: the head for your list.
323 #define list_for_each_entry(pos, head, member) \ argument
324 for (pos = list_entry((head)->next, typeof(*pos), member); \
325 &pos->member != (head); \
332 * @head: the head for your list.
335 #define list_for_each_entry_safe(pos, n, head, member) \ argument
336 for (pos = list_entry((head)->next, typeof(*pos), member), \
338 &pos->member != (head); \
344 * @head: the head for your list.
347 #define list_for_each_entry_reverse(pos, head, member) \ argument
348 for (pos = list_entry((head)->prev, typeof(*pos), member); \
349 &pos->member != (head); \
355 * @head: the head of the list
360 #define list_prepare_entry(pos, head, member) \ argument
361 ((pos) ? : list_entry(head, typeof(*pos), member))
366 * @head: the head for your list.
372 #define list_for_each_entry_continue(pos, head, member) \ argument
374 &pos->member != (head); \
380 * @head: the head for your list.
386 #define list_for_each_entry_continue_reverse(pos, head, member) \ argument
388 &pos->member != (head); \
394 * @head: the head for your list.
399 #define list_for_each_entry_from(pos, head, member) \ argument
400 for (; &pos->member != (head); \
407 * @head: the head for your list.
410 #define list_for_each_entry_safe(pos, n, head, member) \ argument
411 for (pos = list_entry((head)->next, typeof(*pos), member), \
413 &pos->member != (head); \
420 * @head: the head for your list.
426 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
429 &pos->member != (head); \
436 * @head: the head for your list.
442 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
444 &pos->member != (head); \
451 * @head: the head for your list.
457 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
458 for (pos = list_entry((head)->prev, typeof(*pos), member), \
460 &pos->member != (head); \