lkml.org 
[lkml]   [1999]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel space-user space memory access
On Sat, 18 Sep 1999, Krishna Murthy wrote:

> Hi,
>
> Can any body tell me how the process running in user space can
> access the kernel space memory allocated by kmalloc()?
> I want to process the network packets received from the eth controller
> card driver in user space.
>
> thanks
> kams
>
Make a device-driver (kernel module). Implement at least open, close,
and read.

If the device is open, write ethernet packets to your device-driver
buffer. Dynamically allocate/deallocate kernel memory to hold these
packets.

From user-space, open the device and read from it.


Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.031 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site