Struct procfs::KernelModule
source · pub struct KernelModule {
pub name: String,
pub size: u32,
pub refcount: i32,
pub used_by: Vec<String>,
pub state: String,
}Expand description
Details about a loaded kernel module
For an example, see the lsmod.rs example in the source repo.
Fields§
§name: StringThe name of the module
size: u32The size of the module
refcount: i32The 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: StringThe module state
This will probably always be “Live”, but it could also be either “Unloading” or “Loading”
Trait Implementations§
source§impl Clone for KernelModule
impl Clone for KernelModule
source§fn clone(&self) -> KernelModule
fn clone(&self) -> KernelModule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more