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

Function readv

src/backend/linux_raw/io/syscalls.rs:108–112  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>])

Source from the content-addressed store, hash-verified

106
107#[inline]
108pub(crate) fn readv(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
109 let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]);
110
111 unsafe { ret_usize(syscall!(__NR_readv, fd, bufs_addr, bufs_len)) }
112}
113
114#[inline]
115pub(crate) fn preadv(

Callers

nothing calls this directly

Calls 3

sliceFunction · 0.85
ret_usizeFunction · 0.50
lenMethod · 0.45

Tested by

no test coverage detected