Lines Matching refs:type
13 * @type: the type of the container struct this is embedded in.
18 #define container_of(ptr, type, member) ({ \
20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
22 "pointer type mismatch in container_of()"); \
23 ((type *)(__mptr - offsetof(type, member))); })
29 * @type: the type of the container struct this is embedded in.
32 #define container_of_const(ptr, type, member) \
34 const typeof(*(ptr)) *: ((const type *)container_of(ptr, type, member)),\
35 default: ((type *)container_of(ptr, type, member)) \