32bit userland binaries interacting with 64bit kernel modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,

i have couple of kernel modules that need to be ported to 64bit
(x86_64) architecture. userland binaries are built in 32bit mode (for
historical reasons), and interact with the kernel module using ioctls.

i understand that for reading/writing lp64 data types, a translation
function need to be registered with the kernel. what about the ioctls
that i know don't require any translation ? it seems that i _still_
need to provide sys_ioctl (as the default handler) for all such ioctls
explicitly.

apparently in x86_64/ia32/ia32entry.S, compat_sys_ioctl is the only
function defined (to handle ioctls), which does require some handler
to be present.

is there a better way to handle this ?

thank you 
kind regards
anupam

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux