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

Function uname

src/backend/linux_raw/system/syscalls.rs:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17#[inline]
18pub(crate) fn uname() -> RawUname {
19 let mut uname = MaybeUninit::<RawUname>::uninit();
20 unsafe {
21 ret_infallible(syscall!(__NR_uname, &mut uname));
22 uname.assume_init()
23 }
24}
25
26#[inline]
27pub(crate) fn sysinfo() -> Sysinfo {

Callers

nothing calls this directly

Calls 2

assume_initMethod · 0.80
ret_infallibleFunction · 0.50

Tested by

no test coverage detected