Lines Matching full:member
10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
13 * container_of - cast a member of a structure out to the containing structure
14 * @ptr: the pointer to the member.
16 * @member: the name of the member within the struct.
19 #define container_of(ptr, type, member) ({ \ argument
20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
21 (type *)( (char *)__mptr - offsetof(type,member) );})
38 * @member: the name of the list_head within the struct.
40 #define list_entry(ptr, type, member) \ argument
41 container_of(ptr, type, member)
47 * @member: the name of the list_head within the struct.
49 #define list_for_each_entry(pos, head, member) \ argument
50 for (pos = list_entry((head)->next, typeof(*pos), member); \
51 &pos->member != (head); \
52 pos = list_entry(pos->member.next, typeof(*pos), member))
59 * @member: the name of the list_head within the struct.
61 #define list_for_each_entry_safe(pos, n, head, member) \ argument
62 for (pos = list_entry((head)->next, typeof(*pos), member), \
63 n = list_entry(pos->member.next, typeof(*pos), member); \
64 &pos->member != (head); \
65 pos = n, n = list_entry(n->member.next, typeof(*n), member))