Lines Matching defs:list_head
20 struct list_head {
21 struct list_head *next;
22 struct list_head *prev;
27 struct list_head x = { &x, &x }
30 static inline void INIT_LIST_HEAD(struct list_head *p)
38 /* list_entry - retrieve the original struct from list_head
39 * @p: list_head pointer
41 * @member: struct field member containing the list_head
47 * @p: iterator, a list_head pointer variable
48 * @list: list_head pointer containing the list
54 * @p: iterator, a list_head pointer variable
55 * @s: a temporary variable to keep the next, a list_head pointer, too
56 * @list: list_head pointer containing the list
65 static inline void list_add(struct list_head *p, struct list_head *list)
67 struct list_head *first = list->next;
79 static inline void list_add_tail(struct list_head *p, struct list_head *list)
81 struct list_head *last = list->prev;
94 static inline void list_insert(struct list_head *p,
95 struct list_head *prev,
96 struct list_head *next)
105 static inline void list_del(struct list_head *p)
112 static inline int list_empty(const struct list_head *p)