dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_struct_helper.h
Go to the documentation of this file.
1 /* Taken from include/linux/kernel.h from the Linux kernel tree */
2 
10 #define container_of(ptr, type, member) ({ \
11  const typeof( ((type *)0)->member ) *__mptr = (ptr); \
12  (type *)( (char *)__mptr - offsetof(type,member) );})