Lines Matching refs:type
14 * @type: the type of the container struct this is embedded in.
18 #define container_of(ptr, type, member) ({ \
19 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
20 (type *)( (char *)__mptr - offsetof(type,member) );})
36 * @type: the type of the struct this is embedded in.
39 #define list_entry(ptr, type, member) \
40 container_of(ptr, type, member)
43 * list_for_each_entry - iterate over list of given type
44 * @pos: the type * to use as a loop cursor.
54 * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
55 * @pos: the type * to use as a loop cursor.
56 * @n: another type * to use as temporary storage