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: "module_name",
    author: "Author name",
    license: "GPL",
}
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.