[][src]Struct linapi::modules::ModInfo

pub struct ModInfo {
    pub alias: Vec<String>,
    pub soft_dependencies: Vec<String>,
    pub license: String,
    pub authors: Vec<String>,
    pub description: String,
    pub version: String,
    pub firmware: Vec<String>,
    pub version_magic: String,
    pub name: String,
    pub in_tree: bool,
    pub retpoline: bool,
    pub staging: bool,
    pub dependencies: Vec<String>,
    pub source_checksum: String,
    pub parameters: Vec<ModParam>,
}

Information on a ModuleFile

Notes

This uses the .modinfo ELF section, which is semi-documented in linux/modules.h and MODULE_INFO.

Fields

alias: Vec<String>

Module Aliases. Alternative names for this module.

soft_dependencies: Vec<String>

Soft Dependencies. Not required, but may provide additional features.

license: String

Module License

See MODULE_LICENSE for details on this value.

authors: Vec<String>

Module Author and email

description: String

What the module does

version: String

Module version

firmware: Vec<String>

Optional firmware file(s) needed by the module

version_magic: String

Version magic string, used by the kernel for compatibility checking.

name: String

Module name, self-reported.

in_tree: bool

Whether the module is from the kernel source tree.

retpoline: bool

The retpoline security feature

staging: bool

If the module is staging

dependencies: Vec<String>

Other modules this one depends on

source_checksum: String

Source Checksum.

parameters: Vec<ModParam>

Module Parameters

Trait Implementations

impl Debug for ModInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for ModInfo

impl Send for ModInfo

impl Sync for ModInfo

impl Unpin for ModInfo

impl UnwindSafe for ModInfo

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.