Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 13:29:26 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   [review request] make sendfile usable from inside the kernel itself
Message-ID:  <CAJ-Vmo=xHjBu7fU%2BNWMEOhZJLT5WfXeMmz7URBV5jDHqx1OZsA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

http://people.freebsd.org/~adrian/netflix/20131125-sendfile-shuffle-1.diff

This moves the copyout to the 'sbytes' field occur _outside_ of
vn_sendfile() so vn_sendfile() itself can be called from kernel code.

There's likely some more shuffling I have to do with sendfile but this
seems like a good, simple starting point.

I've done some light testing with some local code to no ill effect.

Thanks!



-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=xHjBu7fU%2BNWMEOhZJLT5WfXeMmz7URBV5jDHqx1OZsA>