macro_rules! module_platform_driver {
    ($($f:tt)*) => { ... };
}
Expand description

Declares a kernel module that exposes a single platform driver.

Examples

struct MyDriver;
impl platform::Driver for MyDriver {
    // [...]
}

module_platform_driver! {
    type: MyDriver,
    name: b"module_name",
    author: b"Author name",
    license: b"GPL",
}
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.