2 * SYSCALL_DEFINE4(vmsplice, int, fd, const struct iovec __user *, iov,
3 unsigned long, nr_segs, unsigned int, flags)
12 static void sanitise_vmsplice(int childno
)
14 if ((rand() % 10) > 0)
15 shm
->syscall
[childno
].a1
= shm
->pipe_fds
[rand() % MAX_PIPE_FDS
];
16 shm
->syscall
[childno
].a3
= rand() % UIO_MAXIOV
;
19 struct syscallentry syscall_vmsplice
= {
22 .sanitise
= sanitise_vmsplice
,
26 .arg2type
= ARG_IOVEC
,
27 .arg3name
= "nr_segs",
28 .arg3type
= ARG_IOVECLEN
,
33 .values
= { SPLICE_F_MOVE
, SPLICE_F_NONBLOCK
, SPLICE_F_MORE
, SPLICE_F_GIFT
},