Copy data from kernel to user space memory

Dag-Erling Smørgrav des at des.no
Fri Sep 24 03:04:08 PDT 2004


Niels Heinen <niels.heinen at gmail.com> writes:
> 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.

You can't do that.  The kernel allocates address space, not memory.
It is up to the application to manage its address space as it sees
fit.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list