diff options
Diffstat (limited to 'sys/ofed/include/linux/list.h')
-rw-r--r-- | sys/ofed/include/linux/list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/list.h b/sys/ofed/include/linux/list.h index 61b42d2..4b5454a 100644 --- a/sys/ofed/include/linux/list.h +++ b/sys/ofed/include/linux/list.h @@ -111,6 +111,9 @@ list_del_init(struct list_head *entry) #define list_entry(ptr, type, field) container_of(ptr, type, field) +#define list_first_entry(ptr, type, member) \ + list_entry((ptr)->next, type, member) + #define list_for_each(p, head) \ for (p = (head)->next; p != (head); p = p->next) |