Przemyslaw Czarnowski | ff25d7e | 2020-03-26 11:39:37 +0100 | [diff] [blame] | 1 | #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) - (char *)&((type *)0)->member) | ||||
7 | #endif | ||||
8 | |||||
9 | #endif |