D | list.h | 38 #define container_of(ptr, type, member) ({ \ argument 39 const typeof(((type *)0)->member)*__mptr = (ptr); \ 40 (type *)((char *)__mptr - offsetof(type, member)); \ 83 #define list_entry(item, type, member) \ argument 84 container_of(item, type, member) 86 #define list_entry_first(list, type, member) \ argument 87 container_of((list)->next, type, member) 89 #define list_entry_next(item, member) \ argument 90 container_of((item)->member.next, typeof(*(item)), member) 92 #define list_for_each_entry(item, list, member) \ argument [all …]
|