Lines Matching refs:new
45 * Insert a new entry between two known consecutive entries.
50 static inline void __list_add(struct list_head *new,
54 next->prev = new;
55 new->next = next;
56 new->prev = prev;
57 prev->next = new;
61 * list_add - add a new entry
62 * @new: new entry to be added
65 * Insert a new entry after the specified head.
68 static inline void list_add(struct list_head *new, struct list_head *head)
70 __list_add(new, head, head->next);
75 * list_add_tail - add a new entry
76 * @new: new entry to be added
79 * Insert a new entry before the specified head.
82 static inline void list_add_tail(struct list_head *new, struct list_head *head)
84 __list_add(new, head->prev, head);
115 * list_replace - replace old entry by new one
117 * @new : the new element to insert
122 struct list_head *new)
124 new->next = old->next;
125 new->next->prev = new;
126 new->prev = old->prev;
127 new->prev->next = new;
131 struct list_head *new)
133 list_replace(old, new);
225 * @list: the new list to add.
236 * @list: the new list to add.