Macro kernel::module_platform_driver
source · [−]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",
}