[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Accessing a user space variable from a kernel module
Hi,
If you want to access directly to user memory from kernel. You should use
kiobuf mechanism. You can find more information about this subject into
Device Driver book. I guess the chapter is MMAP.
Best regards,
Ilker G.
-----Original Message-----
From: Jeremy Andrus [mailto:jandru39@calvin.edu]
Sent: Friday, August 02, 2002 5:16 PM
To: Kernelnewbies
Subject: Re: Accessing a user space variable from a kernel module
Everyone's responses have been helpful so far :-)
I have another question. I've decided to use the 'copy_from_user'
function, but I don't know how I'm supposed to discover the userspace
address I need to copy from. The data I want to get into the kernel is
in a variable in a userspace function.
-Jeremy
--
----------------------------
Jeremy C. Andrus
http://www.jeremya.com/
----------------------------
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/