pub trait Module: Sized + Sync {
    fn init(module: &'static ThisModule) -> Result<Self>;
}
Expand description

The top level entrypoint to implementing a kernel module.

For any teardown or cleanup operations, your type may implement Drop.

Required Methods

Called at module initialization time.

Use this method to perform whatever setup or registration your module should do.

Equivalent to the module_init macro in the C API.

Implementors

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