• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/udev/

Lines Matching refs:list

26  * non-initialized list entries.
32 * Simple doubly linked list implementation.
57 * This is only for internal list manipulation where we know
73 * @head: list head to add it after
86 * @head: list head to add it before
97 * Delete a list entry by making the prev/next entries
100 * This is only for internal list manipulation where we know
110 * list_del - deletes entry from list.
111 * @entry: the element to delete from the list.
123 * list_del_init - deletes entry from list and reinitialize it.
124 * @entry: the element to delete from the list.
133 * list_move - delete from one list and add as another's head
134 * @list: the entry to move
137 static inline void list_move(struct list_head *list, struct list_head *head)
139 __list_del(list->prev, list->next);
140 list_add(list, head);
144 * list_move_tail - delete from one list and add as another's tail
145 * @list: the entry to move
148 static inline void list_move_tail(struct list_head *list,
151 __list_del(list->prev, list->next);
152 list_add_tail(list, head);
156 * list_empty - tests whether a list is empty
157 * @head: the list to test.
164 static inline void __list_splice(struct list_head *list,
167 struct list_head *first = list->next;
168 struct list_head *last = list->prev;
180 * @list: the new list to add.
181 * @head: the place to add it in the first list.
183 static inline void list_splice(struct list_head *list, struct list_head *head)
185 if (!list_empty(list))
186 __list_splice(list, head);
190 * list_splice_init - join two lists and reinitialise the emptied list.
191 * @list: the new list to add.
192 * @head: the place to add it in the first list.
194 * The list at @list is reinitialised
196 static inline void list_splice_init(struct list_head *list,
199 if (!list_empty(list)) {
200 __list_splice(list, head);
201 INIT_LIST_HEAD(list);
215 * list_for_each - iterate over a list
217 * @head: the head for your list.
224 * __list_for_each - iterate over a list
226 * @head: the head for your list.
229 * simplest possible list iteration code.
230 * Use this for code that knows the list to be very short (empty
237 * list_for_each_prev - iterate over a list backwards
239 * @head: the head for your list.
245 * list_for_each_safe - iterate over a list safe against removal of list entry
248 * @head: the head for your list.
255 * list_for_each_entry - iterate over list of given type
257 * @head: the head for your list.
266 * list_for_each_entry_reverse - iterate backwards over list of given type.
268 * @head: the head for your list.
277 * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
280 * @head: the head for your list.