mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
vmsplice: add vmsplice-to-user support
A bit of a cheat, it actually just copies the data to userspace. But this makes the interface nice and symmetric and enables people to build on splice, with room for future improvement in performance. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
c66ab6fa70
commit
6a14b90bb6
3 changed files with 158 additions and 30 deletions
|
@ -88,7 +88,13 @@ int generic_pipe_buf_steal(struct pipe_inode_info *, struct pipe_buffer *);
|
|||
struct splice_desc {
|
||||
unsigned int len, total_len; /* current and remaining length */
|
||||
unsigned int flags; /* splice flags */
|
||||
struct file *file; /* file to read/write */
|
||||
/*
|
||||
* actor() private data
|
||||
*/
|
||||
union {
|
||||
void __user *userptr; /* memory to write to */
|
||||
struct file *file; /* file to read/write */
|
||||
} u;
|
||||
loff_t pos; /* file position */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue