Sorry for the delay in reply, I've been a little distracted lately.
Get Object B From Pointer To Member A in Object B When Only Having Pointer To Member A. You know the address of Object A in Object B, but not the address of Object B?
Yes, that's exactly what I'm doing.
And do you think the warning message could be from trying to use the reference NULL as a identifier or something?
No, NULL is just a #define to 0 in my kernel. I'll try using a static (or const?) variable as in your example, see if that gets rid of the warnings.
What is tAdr?
tAdr is the address type. Pretty much this:
I'm not using the built-in headers, so the offsetof() macro is undefined. I'll try and find it though, to see if I can amend mine.
Thanks everyone,
Senaus