(
fd_in: BorrowedFd<'_>,
off_in: Option<&mut u64>,
fd_out: BorrowedFd<'_>,
off_out: Option<&mut u64>,
len: usize,
flags: SpliceFlags,
)
| 58 | |
| 59 | #[inline] |
| 60 | pub(crate) fn splice( |
| 61 | fd_in: BorrowedFd<'_>, |
| 62 | off_in: Option<&mut u64>, |
| 63 | fd_out: BorrowedFd<'_>, |
| 64 | off_out: Option<&mut u64>, |
| 65 | len: usize, |
| 66 | flags: SpliceFlags, |
| 67 | ) -> io::Result<usize> { |
| 68 | unsafe { |
| 69 | ret_usize(syscall!( |
| 70 | __NR_splice, |
| 71 | fd_in, |
| 72 | opt_mut(off_in), |
| 73 | fd_out, |
| 74 | opt_mut(off_out), |
| 75 | pass_usize(len), |
| 76 | flags |
| 77 | )) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | #[inline] |
| 82 | pub(crate) unsafe fn vmsplice( |
nothing calls this directly
no test coverage detected