Struct kmod::Module
[−]
[src]
pub struct Module { /* fields omitted */ }
Wrapper around a kmod_module
Methods
impl Module
[src]
pub fn name(&self) -> String
[src]
Get the name of the module
pub fn size(&self) -> i64
[src]
Get the size of the module
pub fn refcount(&self) -> i32
[src]
Get the number of references to this module
ⓘImportant traits for ModuleIteratorpub fn holders(&self) -> ModuleIterator
[src]
ⓘImportant traits for ModuleIterator
Iterate over the modules depending on this module
ⓘImportant traits for ModuleIteratorpub fn dependencies(&self) -> ModuleIterator
[src]
ⓘImportant traits for ModuleIterator
Get this modules dependencies
pub fn path(&self) -> String
[src]
Get module path
pub fn options(&self) -> String
[src]
Get module options
pub fn insert_module(&self, flags: u32, opts: Vec<String>) -> Result<()>
[src]
Insert the module into the kernel
pub fn remove_module(&self, flags: u32) -> Result<()>
[src]
Remove the module from the kernel