Lines Matching defs:new
50 * Insert a new entry between two known consecutive entries.
55 static inline void __list_add(struct list_head *new,
59 next->prev = new;
60 new->next = next;
61 new->prev = prev;
62 prev->next = new;
66 * list_add - add a new entry
67 * @new: new entry to be added
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);
79 * list_add_tail - add a new entry
80 * @new: new entry to be added
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);
207 * * @list: the new list to add.
217 * list_replace - replace old entry by new one
219 * @new : the new element to insert
224 struct list_head *new)
226 new->next = old->next;
227 new->next->prev = new;
228 new->prev = old->prev;
229 new->prev->next = new;
233 struct list_head *new)
235 list_replace(old, new);