|
|
Log in / Subscribe / Register

splice

splice

Posted Dec 22, 2005 8:12 UTC (Thu) by Ross (guest, #4065)
In reply to: splice by thedevil
Parent article: Some new system calls

Using sendfile() is just a shortcut for read() followed by write() with the same buffer and length; it avoids copying into and out of userspace. The difference with splice() is that the reading and writing will happen automatically as data becomes available, not requiring userspace to perform additional system calls, need to determine optimal buffer sizes, etc.

I do wonder how error handling would work...


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


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