Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 12:04:06 +0200
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Niels Heinen <niels.heinen@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Copy data from kernel to user space memory
Message-ID:  <xzp3c183rvt.fsf@dwp.des.no>
In-Reply-To: <dea572790409230238858640@mail.gmail.com> (Niels Heinen's message of "Thu, 23 Sep 2004 11:38:28 %2B0200")
References:  <dea572790409230238858640@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Niels Heinen <niels.heinen@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
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp3c183rvt.fsf>