pub fn current() -> ProcResult<KernelVersion> {
        let mut f = proctry!(File::open("/proc/sys/kernel/osrelease"));
        let mut buf = String::new();
        proctry!(f.read_to_string(&mut buf));

        ProcResult::Ok(KernelVersion::from_str(&buf).unwrap())
    }
/// Returns the kernel version of the curretly running kernel.
///
/// This is taken from `/proc/sys/kernel/osrelease`;
Returns the kernel version of the curretly running kernel.
This is taken from `/proc/sys/kernel/osrelease`.
Returns the kernel version of the curretly running kernel . This is taken from ` / proc / sys / kernel / osrelease ` .
pub fn current() -> ProcResult<KernelVersion> {
        let mut f = proctry!(File::open("/proc/sys/kernel/osrelease"));
        let mut buf = String::new();
        proctry!(f.read_to_string(&mut buf));
        ProcResult::Ok(KernelVersion::from_str(&buf).unwrap())
    }
pub fn current ( ) -> ProcResult < KernelVersion > { let mut f = proctry ! ( File open ( " " ) ) ; let mut buf = String :: new ( ) ; proctry ! ( f read_to_string ( mut buf ) ) ; ProcResult :: Ok ( KernelVersion :: from_str ( & buf ) . unwrap ( ) ) }
Returns the kernel version of the curretly running kernel.
Returns the kernel version of the curretly running kernel .