vmsplice: implement real vmsplice to userspace
authorJens Axboe <jens.axboe@oracle.com>
Wed, 19 May 2010 18:51:24 +0000 (20:51 +0200)
committerJens Axboe <axboe@nehalem.(none)>
Thu, 20 May 2010 08:43:31 +0000 (10:43 +0200)
commit307e449e313c72eb4ad3f367f4ba481942187aa6
treed0a58aec54d3fb966de2876a1aaa2accd055cef4
parent1d84f9b24b7ba827baa14ca8ebcf0ef30f4d440b
vmsplice: implement real vmsplice to userspace

I'm sure this is riddled with bugs currently, it's a 3 hour hack
but it does appear to work. It attempts to map pipe pages into
a vma, so that it appears in the applications address space
without having to copy data.

The caller must manage the address region with mmap() and
munmap(), vmsplice() only works on existing vmas.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/splice.c