Date: Tue, 6 Jul 2004 02:15:11 +0200 From: thefly <thefly@acaro.org> To: freebsd-hackers@freebsd.org Subject: ZEROCOPY between kernel and userland Message-ID: <20040706001511.GA11077@tyler>
index | next in thread | raw e-mail
Hello everybody, i'm writing a netgraph module to get some stats about
the network traffic. Actually i have to pass all the data gathered all
in one piece, to the process which asks me for it. The client should
work like this in userland:
int * pointer;
ioctl(dev, MY_COMMAND, pointer);
after this pointer points to the right memory area. The array to pass is
about 500Kb, so copying with copyout() would be too expensive, moving
the array from kernel's addrespace to process's address space would be
fast.
The question is: what's the actual API to do that, if there's any, in
freebsd 5?
TIA
--
Claudio "thefly" Martella
thefly@acaro.org
GNU/PG keyid: 0x8EA95625
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040706001511.GA11077>
