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.
18 #define container_of(ptr, type, member) ({ \ argument
20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
23 ((type *)(__mptr - offsetof(type, member))); })
26 * container_of_const - cast a member of a structure out to the containing
28 * @ptr: the pointer to the member
30 * @member: the name of the member within the struct.
32 #define container_of_const(ptr, type, member) \ argument
34 const typeof(*(ptr)) *: ((const type *)container_of(ptr, type, member)),\
35 default: ((type *)container_of(ptr, type, member)) \