Skip to contentSkip to conversation

kernel modules and 64-bit kernels

DISCUSSION Andi Kleen 1 participant 1 message Jan 27, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20030127180414.85643.qmail@web20417.mail.yahoo.com.suse.lists.linux.kernel

Andi Kleen

author
#1 lore raw
Quoted 2 lines · devnetfs

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)

Quoted 3 lines

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