Lines Matching full:member
20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
22 * container_of - cast a member of a structure out to the containing structure
23 * @ptr: the pointer to the member.
25 * @member: the name of the member within the struct.
28 #define container_of(ptr, type, member) ({ \ argument
29 const typeof(((type *)0)->member)*__mptr = (ptr); \
30 (type *)((char *)__mptr - offsetof(type, member)); })
90 * @member: the name of the list_head within the struct.
92 #define list_entry(ptr, type, member) \ argument
93 container_of(ptr, type, member)
99 * @member: the name of the list_head within the struct.
101 #define list_for_each_entry(pos, head, member) \ argument
102 for (pos = list_entry((head)->next, typeof(*pos), member); \
103 &pos->member != (head); \
104 pos = list_entry(pos->member.next, typeof(*pos), member))