1 #include <linux/kernel.h>
3 #include "../../../../include/linux/list.h"
8 * list_del_range - deletes range of entries from list.
9 * @begin: first element in the range to delete from the list.
10 * @end: last element in the range to delete from the list.
11 * Note: list_empty on the range of entries does not return true after this,
12 * the entries is in an undefined state.
14 static inline void list_del_range(struct list_head
*begin
,
15 struct list_head
*end
)
17 begin
->prev
->next
= end
->next
;
18 end
->next
->prev
= begin
->prev
;
22 * list_for_each_from - iterate over a list from one of its nodes
23 * @pos: the &struct list_head to use as a loop cursor, from where to start
24 * @head: the head for your list.
26 #define list_for_each_from(pos, head) \
27 for (; pos != (head); pos = pos->next)
This page took 0.050533 seconds and 6 git commands to generate.