[][src]Struct dpdk_unix::android_linux::linux_kernel_modules::LinuxKernelModulesList

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]

pub fn unload_linux_kernel_module(
    linux_kernel_module_name: &[u8]
) -> Result<bool, Error>
[src]

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]

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]

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]

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]

Is the linux_kernel_module_name loaded?

Trait Implementations

impl Eq for LinuxKernelModulesList[src]

impl Clone for 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]

impl Debug for LinuxKernelModulesList[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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