[][src]Struct procfs::KernelModule

pub struct KernelModule {
    pub name: String,
    pub size: u32,
    pub refcount: i32,
    pub used_by: Vec<String>,
    pub state: String,
}

Details about a loaded kernel module

For an example, see the lsmod.rs example in the source repo.

Fields

name: String

The name of the module

size: u32

The size of the module

refcount: i32

The number of references in the kernel to this module. This can be -1 if the module is unloading

used_by: Vec<String>

A list of modules that depend on this module.

state: String

The module state

This will probably always be "Live", but it could also be either "Unloading" or "Loading"

Trait Implementations

impl Debug for KernelModule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.