* kernel modules and 64-bit kernels
@ 2003-01-27 18:04 devnetfs
0 siblings, 0 replies; 2+ messages in thread
From: devnetfs @ 2003-01-27 18:04 UTC (permalink / raw)
To: linux-kernel
[posted this query on kernelnewbies@nl.linux.org earlier]
Hello,
Do kernel modules need to be aware that they are running in a 64-bit
kernel or a 32-bit kernel?
I guess yes, especially interacting with 32-bit userspace programs.
For e.g. if a 32-bit program (running on a 64-bit kernel) passes a
pointer to the kernel module (via an ioctl), how does the kernel/module
know that its a 32-bit address? the sizeof(pointer) changes in
kernel/userspace in this case. So in the ioctl handler the kernel
modules does how many bytes of copy_from_use() to get the ioctl args?
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??
Any links, pointers to relevant HOWTO/docs/source will be very useful.
Thanks,
A.
ps: Please Cc: me the reply. I am not on this mailing list.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <20030127180414.85643.qmail@web20417.mail.yahoo.com.suse.lists.linux.kernel>]
end of thread, other threads:[~2003-01-27 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 18:04 kernel modules and 64-bit kernels devnetfs
[not found] <20030127180414.85643.qmail@web20417.mail.yahoo.com.suse.lists.linux.kernel>
2003-01-27 18:52 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®