Function
vmsplice
(
fd: BorrowedFd<'_>,
bufs: &[IoSliceRaw<'_>],
flags: SpliceFlags,
)
Source from the content-addressed store, hash-verified
| 80 | |
| 81 | #[inline] |
| 82 | pub(crate) unsafe fn vmsplice( |
| 83 | fd: BorrowedFd<'_>, |
| 84 | bufs: &[IoSliceRaw<'_>], |
| 85 | flags: SpliceFlags, |
| 86 | ) -> io::Result<usize> { |
| 87 | let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); |
| 88 | ret_usize(syscall!(__NR_vmsplice, fd, bufs_addr, bufs_len, flags)) |
| 89 | } |
| 90 | |
| 91 | #[inline] |
| 92 | pub(crate) fn tee( |
Callers
nothing calls this directly
Tested by
no test coverage detected