I have a kernel module and a user tool that interacts with it. Someone
wants to run this on a sparc and it's not working. Turns out the sparc
has a 32 bit userspace and 64 bit kernel.
The userspace/kernel interaction is done with a "struct info" (and
getsockopt/setsockopt). When I print the size of this struct info I
get 28 for userspace and 40 in the kernel! Ofcourse sh*t happens then.
How to solve this? Is there a compiler option for the userspace
Or do I have to go work with annoying "#ifdef" stuff in my header file
that is used by both kernel and userspace. And if yes, can you say