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

Function ioctl

src/backend/linux_raw/io/syscalls.rs:285–291  ·  view source on GitHub ↗
(
    fd: BorrowedFd<'_>,
    request: Opcode,
    arg: *mut c::c_void,
)

Source from the content-addressed store, hash-verified

283
284#[inline]
285pub(crate) unsafe fn ioctl(
286 fd: BorrowedFd<'_>,
287 request: Opcode,
288 arg: *mut c::c_void,
289) -> io::Result<IoctlOutput> {
290 ret_c_int(syscall!(__NR_ioctl, fd, c_uint(request), arg))
291}
292
293#[inline]
294pub(crate) unsafe fn ioctl_readonly(

Callers 2

name_to_indexFunction · 0.50
index_to_nameFunction · 0.50

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected