Module system

Available on crate feature dep_rustix only.
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.

Enums§

RebootCommand
Reboot command for use with reboot.

Functions§

delete_module
delete_module—Unload a kernel module.
finit_module
finit_module—Load a kernel module from a file descriptor.
init_module
init_module—Load a kernel module.
reboot
reboot—Reboot the system or enable/disable Ctrl-Alt-Del.
setdomainname
setdomain(name)—Sets the system NIS domain name.
sethostname
sethostname(name)—Sets the system host name.
sysinfo
sysinfo()—Returns status information about the runtime OS.
uname
uname()—Returns high-level information about the runtime OS and hardware.

Type Aliases§

Sysinfo
sysinfo