[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: moving data to and from user/kernel space
On Tue, Jan 07, 2003 at 10:39:59AM -0500, Dan wrote:
| I am trying to pass data between a kenerl module and a userspace daemon.
| I am not having much luck finding out how. so right now i have a proc
| file set up that the userspace program just reads and write to the proc
| file and the kernel module just reacts to those reads and writes. i dont
| think this is the best way - there has to be a better way. Any insight
| would be great! Thank you!
Lookup copy_from_user/copy_to_user. They are documented in Rubini's
Linux Device Drivers book, chapter 3, page 79.
--
Chirag Kantharia, symonds.net/~chyrag/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/