Skip to content

Commit b812f58

Browse files
committed
Revert "rust: remove params from module macro example"
This reverts commit 1984345. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 7a024f2 commit b812f58

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

rust/macros/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ use proc_macro::TokenStream;
4040
/// description: "My very own kernel module!",
4141
/// license: "GPL",
4242
/// alias: ["alternate_module_name"],
43+
/// params: {
44+
/// my_i32: i32 {
45+
/// default: 42,
46+
/// permissions: 0o000,
47+
/// description: "Example of i32",
48+
/// },
49+
/// writeable_i32: i32 {
50+
/// default: 42,
51+
/// permissions: 0o644,
52+
/// description: "Example of i32",
53+
/// },
54+
/// },
4355
/// }
4456
///
4557
/// struct MyModule;

0 commit comments

Comments
 (0)