Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
list.h
Go to the documentation of this file.
1 #include <linux/kernel.h>
2 #include <linux/prefetch.h>
3 
4 #include "../../../../include/linux/list.h"
5 
6 #ifndef PERF_LIST_H
7 #define PERF_LIST_H
8 
15 static inline void list_del_range(struct list_head *begin,
16  struct list_head *end)
17 {
18  begin->prev->next = end->next;
19  end->next->prev = begin->prev;
20 }
21 
27 #define list_for_each_from(pos, head) \
28  for (; pos != (head); pos = pos->next)
29 #endif