Skip to content

container_of macro

include/container_of.h View source View on GitHub
#define container_of(ptr, type, member) \
    ((type *) ((char *) (ptr) - offsetof(type, member)))