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...
