Function linux_syscalls::init

source ·
pub fn init()
Available on non-crate feature bare only.
Expand description

Initialize the environment for the library. It’s recommended to call it before anything else in the main function.

Examples found in repository?
examples/kernel_exit.rs (line 6)
5
6
7
8
9
10
fn main() {
    init();
    print_arch();
    println!("{}", env::kernel_version());
    unsafe { syscall!([!] Sysno::exit, 69) }
}