Skip to main content

Module system

Module system 

Source
Available on crate feature system only.
Expand description

Uname and other system-level functions.

Structs§

Sysinfolinux_kernel
sysinfo
Uname
struct utsname—Return type for uname.

Enums§

RebootCommandLinux
Reboot command for use with reboot.

Functions§

delete_modulelinux_kernel
delete_module—Unload a kernel module.
finit_modulelinux_kernel
finit_module—Load a kernel module from a file descriptor.
init_modulelinux_kernel
init_module—Load a kernel module.
rebootLinux
reboot—Reboot the system or enable/disable Ctrl-Alt-Del.
setdomainnameNeither Cygwin nor Emscripten nor target_os=espidf nor Haiku nor target_os=horizon nor illumos nor Redox nor Solaris nor target_os=vita nor WASI
setdomain(name)—Sets the system NIS domain name.
sethostnameNeither Emscripten nor target_os=espidf nor target_os=horizon nor Redox nor target_os=vita nor WASI
sethostname(name)—Sets the system host name.
sysinfolinux_kernel
sysinfo()—Returns status information about the runtime OS.
uname
uname()—Returns high-level information about the runtime OS and hardware.