Am Sat, 17 Jan 2015 22:53:10 +0300 schrieb Mike Krinkin <krinkin.m.u at gmail.com>: > > #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!