Lines Matching full:member
11 * container_of - cast a member of a structure out to the containing structure
12 * @ptr: the pointer to the member.
14 * @member: the name of the member within the struct.
17 #define container_of(ptr, type, member) ({ \ argument
19 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
22 ((type *)(__mptr - offsetof(type, member))); })
25 * container_of_safe - cast a member of a structure out to the containing structure
26 * @ptr: the pointer to the member.
28 * @member: the name of the member within the struct.
32 #define container_of_safe(ptr, type, member) ({ \ argument
34 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
38 ((type *)(__mptr - offsetof(type, member))); })