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

Function vmsplice

src/pipe.rs:171–177  ·  view source on GitHub ↗
(
    fd: PipeFd,
    bufs: &[IoSliceRaw<'_>],
    flags: SpliceFlags,
)

Source from the content-addressed store, hash-verified

169#[cfg(linux_kernel)]
170#[inline]
171pub unsafe fn vmsplice<PipeFd: AsFd>(
172 fd: PipeFd,
173 bufs: &[IoSliceRaw<'_>],
174 flags: SpliceFlags,
175) -> io::Result<usize> {
176 backend::pipe::syscalls::vmsplice(fd.as_fd(), bufs, flags)
177}
178
179/// `tee(fd_in, fd_out, len, flags)`—Copy data between pipes without
180/// consuming it.

Callers 2

test_vmsplice_writeFunction · 0.50
test_vmsplice_readFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 2

test_vmsplice_writeFunction · 0.40
test_vmsplice_readFunction · 0.40