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: b"module_name",
author: b"Author name",
license: b"GPL",
}