Adrian Chadd 3287361e38 Refactor out the sendfile copyout in order to make vn_sendfile()
callable from the kernel.

Right now vn_sendfile() can't be called from anything other than
a syscall handler _and_ return the number of bytes queued.
This simply moves the copyout() to do_sendfile() so that any kernel
code can initiate vn_sendfile() outside of a syscall context.

Tested:

* tiny little sendfile program spitting things out a tcp socket

Sponsored by:	Netflix, Inc.
2013-11-26 02:02:05 +00:00
..
2013-11-25 19:04:51 +00:00
2013-11-25 11:02:58 +00:00
2013-11-23 00:28:18 +00:00
2013-09-29 15:19:34 +00:00
2013-11-11 13:19:55 +00:00
2013-11-20 21:21:29 +00:00