MCPcopy Create free account
hub / github.com/RustCV/RustCV / ior

Function ior

rustcv-camera/src/backend/linux/sys.rs:33–35  ·  view source on GitHub ↗
(typ: u8, nr: u8)

Source from the content-addressed store, hash-verified

31 (dir << 30) | ((size as u32 & 0x3FFF) << 16) | ((typ as u32) << 8) | (nr as u32)
32}
33const fn ior<T>(typ: u8, nr: u8) -> u32 {
34 ioc(2, typ, nr, mem::size_of::<T>())
35}
36const fn iow<T>(typ: u8, nr: u8) -> u32 {
37 ioc(1, typ, nr, mem::size_of::<T>())
38}

Callers

nothing calls this directly

Calls 1

iocFunction · 0.85

Tested by

no test coverage detected