Module lrs::sys

System management.

Types

KindNameDescription
Struct NumInfo

Returns information about the system in form of numbers.

Struct StrInfo

Returns information about the system in form of strings.

Functions

NameDescription
enable_accounting

Enables process accounting.

enable_ctrl_alt_delete

Enable or disable immediate restarting with ctrl-alt-delete.

exec_new_kernel

Executes a new kernel.

get_random

Retrieves random bytes from the system.

get_random_non_blocking

Retrieves random bytes from the system without blocking.

halt

Halts the system.

has_bpf
has_epollwakeup
has_execveat
has_falloc_fl_collapse_range
has_falloc_fl_zero_range
has_finit_module
has_getrandom
has_kcmp
has_kexec_file_load
has_madv_dodump
has_madv_dontdump
has_map_huge_1gb
has_map_huge_2mb
has_memfd_create
has_o_tmpfile
has_pipe_o_direct
has_process_vm_readv
has_process_vm_writev
has_renameat2
has_sched_getattr
has_sched_setattr
has_seccomp
has_seek_data
has_seek_hole
has_tfd_ioc_set_ticks
hibernate

Performs a software suspend (suspend-to-disk.)

power_off

Shuts the system down and powers it off.

restart

Shuts the system down and powers it off.

set_domain_name

Sets the domain name of the system

set_host_name

Sets the hostname of the system

version

Returns the major and minor version of the kernel we're running on.