User: Password:
|
|
Subscribe / Log in / New account

OLS: A proposal for a new networking API

OLS: A proposal for a new networking API

Posted Aug 4, 2006 4:43 UTC (Fri) by efexis (guest, #26355)
In reply to: OLS: A proposal for a new networking API by dps
Parent article: OLS: A proposal for a new networking API

...or even swapping with a fresh page? For example, you allocate a 4k page, construct the message, and 'send' it. At that moment, the page table entry that the user process sees is swapped with the one the kernel/driver sees. The user process now has an empty page at that location, ready to write the next message into, and the kernel has access to the page to send to the device.

Same with recieving; device writes page to memory, kernel figures out where it has to go, and adds it to the virtual address space of that process where the process has requested it. That page is now allocated to that process, so the next read would come into a different address. There's no need for copy-on-write, as a page is no longer needed after being passed along, so an empty page in it's place would suffice.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds