Module system

Source
Expand description

Uname and other system-level functions.

§Safety

This function converts from struct utsname fields provided from the kernel into &str references, which assumes that they’re NUL-terminated.

Structs§

Uname
struct utsname—Return type for uname.

Functions§

sethostname
sethostname(name)—Sets the system host name.
uname
uname()—Returns high-level information about the runtime OS and hardware.