container_of macro
Defines
Section titled “Defines”#define container_of(ptr, type, member) \ ((type *) ((char *) (ptr) - offsetof(type, member)))#define container_of(ptr, type, member) \ ((type *) ((char *) (ptr) - offsetof(type, member)))