Am Sat, 17 Jan 2015 22:53:10 +0300 schrieb Mike Krinkin <krinkin.m.u@xxxxxxxxx>: > > #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 Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies