Struct dpdk_unix::android_linux::linux_kernel_modules::LinuxKernelModulesList [−][src]
pub struct LinuxKernelModulesList(_);
A list of Linux kernel modules loaded on the system.
Is not updated if a module is loaded or unloaded.
Methods
impl LinuxKernelModulesList[src]
impl LinuxKernelModulesListpub fn unload_linux_kernel_module(
linux_kernel_module_name: &str
) -> Result<bool, Error>[src]
pub fn unload_linux_kernel_module(
linux_kernel_module_name: &str
) -> Result<bool, Error>Unloads a Linux kernel module.
Does not use modprobe.
true if unloaded. false if does not exist.
pub fn load_linux_kernel_module_from_ko_file(
linux_kernel_module_path: &Path
) -> Result<bool, Error>[src]
pub fn load_linux_kernel_module_from_ko_file(
linux_kernel_module_path: &Path
) -> Result<bool, Error>Loads a Linux Kernel Module.
Does not use modprobe.
Returns true if loaded. Returns false if permissions error occurred (eg was not root).
linux_kernel_module_path normally ends in a '.ko' file extension, but this is not enforced.
pub fn load_linux_kernel_module_if_absent_from_ko_file(
&mut self,
linux_kernel_module_name: &str,
module_file_base_name: &str,
linux_kernel_modules_path: &Path
) -> Result<bool, Error>[src]
pub fn load_linux_kernel_module_if_absent_from_ko_file(
&mut self,
linux_kernel_module_name: &str,
module_file_base_name: &str,
linux_kernel_modules_path: &Path
) -> Result<bool, Error>Loads a Linux Kernel Module.
module_file_base_name excludes the .ko file extension.
Does not use modprobe.
Returns true if loaded. Returns false if already loaded.
Updates the list of loaded modules.
pub fn load_linux_kernel_module_if_absent_using_modprobe(
&mut self,
linux_kernel_module_name: &str,
module_file_base_name: &str
) -> Result<bool, ModProbeError>[src]
pub fn load_linux_kernel_module_if_absent_using_modprobe(
&mut self,
linux_kernel_module_name: &str,
module_file_base_name: &str
) -> Result<bool, ModProbeError>Loads a module if absent from the Kernel.
Uses modprobe.
Updates the list of loaded modules.
pub fn is_linux_kernel_module_is_loaded(
&self,
linux_kernel_module_name: &str
) -> bool[src]
pub fn is_linux_kernel_module_is_loaded(
&self,
linux_kernel_module_name: &str
) -> boolIs the linux_kernel_module_name loaded?
Trait Implementations
impl Debug for LinuxKernelModulesList[src]
impl Debug for LinuxKernelModulesListfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LinuxKernelModulesList[src]
impl Clone for LinuxKernelModulesListfn clone(&self) -> LinuxKernelModulesList[src]
fn clone(&self) -> LinuxKernelModulesListReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for LinuxKernelModulesList[src]
impl PartialEq for LinuxKernelModulesListfn eq(&self, other: &LinuxKernelModulesList) -> bool[src]
fn eq(&self, other: &LinuxKernelModulesList) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LinuxKernelModulesList) -> bool[src]
fn ne(&self, other: &LinuxKernelModulesList) -> boolThis method tests for !=.
impl Eq for LinuxKernelModulesList[src]
impl Eq for LinuxKernelModulesListAuto Trait Implementations
impl Send for LinuxKernelModulesList
impl Send for LinuxKernelModulesListimpl Sync for LinuxKernelModulesList
impl Sync for LinuxKernelModulesList