linux_syscalls/env/kernel/mod.rs
1pub(crate) mod common;
2
3pub(crate) use self::common::{uname, version};
4pub use self::common::{utsname, Version};
5use crate::{syscall, Sysno};
6
7#[allow(unused_imports)]
8pub(crate) use common::{KERNEL_VERSION, UNAME};
9
10pub(crate) unsafe fn init() {
11 syscall!(Sysno::uname, self::common::UNAME.get()).expect("Failed to get uname");
12 self::common::init_version();
13}