[−][src]Struct dpdk_unix::android_linux::linux_kernel_modules::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]
pub fn unload_linux_kernel_module(
linux_kernel_module_name: &[u8]
) -> Result<bool, Error>
[src]
linux_kernel_module_name: &[u8]
) -> 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]
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: &[u8],
module_file_base_name: &str,
linux_kernel_modules_path: &Path
) -> Result<bool, Error>
[src]
&mut self,
linux_kernel_module_name: &[u8],
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: &[u8],
module_file_base_name: &[u8]
) -> Result<bool, ModProbeError>
[src]
&mut self,
linux_kernel_module_name: &[u8],
module_file_base_name: &[u8]
) -> 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: &[u8]
) -> bool
[src]
&self,
linux_kernel_module_name: &[u8]
) -> bool
Is the linux_kernel_module_name
loaded?
Trait Implementations
impl Eq for LinuxKernelModulesList
[src]
impl Clone for LinuxKernelModulesList
[src]
fn clone(&self) -> LinuxKernelModulesList
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<LinuxKernelModulesList> for LinuxKernelModulesList
[src]
fn eq(&self, other: &LinuxKernelModulesList) -> bool
[src]
fn ne(&self, other: &LinuxKernelModulesList) -> bool
[src]
impl Debug for LinuxKernelModulesList
[src]
Auto Trait Implementations
impl Send for LinuxKernelModulesList
impl Sync for LinuxKernelModulesList
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,