Re: memory in kernel and user land

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

 



On Mon, Dec 10, 2001 at 02:30:15PM -0500, D Cleveland wrote:

> I am looking for some simple method of exchanging data between the kernel
> and a user process.  basically i cant use the proc filesystem.  so im
> looking for something along these lines:

well, you can't do it that way. Sysctl or a misc char device are the
simplest ways.

For the misc char device method, you need to register, and provide a
read() routine to copy the data into userspace

Have a look at the free Linux Device Drivers book

regards
john

-- 
"Of all manifestations of power, restraint impresses the most."
	- Thucydides
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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