Re: kernel modules and 64-bit kernels

From: Andi Kleen (ak@suse.de)
Date: Mon Jan 27 2003 - 13:52:38 EST


devnetfs <devnetfs@yahoo.com> writes:

> Do kernel modules need to be aware that they are running in a 64-bit
> kernel or a 32-bit kernel?

Yes, if they want to support 32bit programs in a 64bit kernel they
usually need ioctl translation and sometimes syscall translation
(if they have own ioctls or syscalls)

> How should be the modules be written so they work both on 32/64-bit
> kernel AND can interact with both 32/64-bit userspace programs in
> a 64-bit kernel??

http://www.firstfloor.org/~andi/writing-ioctl32

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:17 EST