blob: facefe565ba84f3e6d5f120d5dac2a0aec95c427 [file] [log] [blame]
Rashmica Guptac1b66f42022-12-09 16:24:45 +11001#ifndef CONTAINER_OF_H
2#define CONTAINER_OF_H
3
4#ifndef container_of
5#define container_of(ptr, type, member) \
6 (type *)((char *)(ptr)-offsetof(type, member))
7#endif
8
9#endif