MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / vmsplice

Function vmsplice

src/backend/linux_raw/pipe/syscalls.rs:82–89  ·  view source on GitHub ↗
(
    fd: BorrowedFd<'_>,
    bufs: &[IoSliceRaw<'_>],
    flags: SpliceFlags,
)

Source from the content-addressed store, hash-verified

80
81#[inline]
82pub(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]
92pub(crate) fn tee(

Callers

nothing calls this directly

Calls 3

sliceFunction · 0.85
ret_usizeFunction · 0.50
lenMethod · 0.45

Tested by

no test coverage detected