diff options
Diffstat (limited to 'include/linux/list.h')
-rw-r--r-- | include/linux/list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 656aacc2a..a3900e53c 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -104,6 +104,9 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea #define list_entry(ptr, type, member) \ ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) +#define list_for_each(pos, head) \ + for (pos = (head)->next; pos != (head); pos = pos->next) + #endif /* __KERNEL__ */ #endif |