Am Sat, 17 Jan 2015 22:53:10 +0300
schrieb Mike Krinkin <[email protected]>:

> 
> #define container_of(ptr, type, member) ({ \
>       (type *)((char *)(ptr) - offsetof(type, member));})
> 

Thank you Mike, this is working!

ptr is not evaluated before the text is replaced -.-
I should know this...

Thank you very much!

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to