Go to the documentation of this file. 28 #if !defined( MBG_TGT_KERNEL ) 48 #if defined( MBG_TGT_POSIX ) 52 #define mbg_container_of( _ptr, _type, _member ) ({ \ 53 const typeof( ((_type *)0)->_member ) *__mptr = (_ptr); \ 54 (_type *)((char *)__mptr - offsetof(_type,_member));}) 59 #define mbg_container_of( _ptr, _type, _member ) \ 60 ( (_type *)( (char *)(1 ? (_ptr) : &((_type *)0)->_member) - offsetof( _type, _member )))