pub struct ThisModule(_);
Expand description

Equivalent to THIS_MODULE in the C API.

C header: include/linux/export.h

Implementations

Creates a ThisModule given the THIS_MODULE pointer.

Safety

The pointer must be equal to the right THIS_MODULE.

Locks the module parameters to access them.

Returns a KParamGuard that will release the lock when dropped.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.