mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: devnetfs <devnetfs@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: kernel modules and 64-bit kernels
Date: Mon, 27 Jan 2003 10:04:14 -0800 (PST)	[thread overview]
Message-ID: <20030127180414.85643.qmail@web20417.mail.yahoo.com> (raw)

[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

             reply	other threads:[~2003-01-27 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-27 18:04 devnetfs [this message]
     [not found] <20030127180414.85643.qmail@web20417.mail.yahoo.com.suse.lists.linux.kernel>
2003-01-27 18:52 ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030127180414.85643.qmail@web20417.mail.yahoo.com \
    --to=devnetfs@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®