Home | History | Annotate | Download | only in btt

Lines Matching refs:MEMBER

8  * Get offset of a member
10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
15 * Casts a member of a structure out to the containing structure
16 * @param ptr the pointer to the member.
18 * @param member the name of the member within the struct.
21 #define container_of(ptr, type, member) ({ \
22 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
23 (type *)( (char *)__mptr - offsetof(type,member) );})
144 * @member: the name of the list_struct within the struct.
146 #define list_entry(ptr, type, member) \
147 container_of(ptr, type, member)