Copy data from kernel to user space memory

Niels Heinen niels.heinen at gmail.com
Thu Sep 23 02:38:37 PDT 2004


Hi all,

I'm working on a kernel module that I want to use to copy packet
data, obtained trough the phil hooks, to user space memory.

The module buffers packets and currently copies it into user memory
when its system call interface is used.  At the moment my user space 
application is the one that allocates the memory. I want the memory 
to be allocated by the module in order to make things more efficient.

I'd really appriciate it if someone could explain how this should be done

Thanks in advance,

Niels


More information about the freebsd-hackers mailing list