Skip to content

Commit 9ba8bb2

Browse files
jannauhoshinolina
authored andcommitted
Revert "rust: remove params from module macro example"
This reverts commit 1984345. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 40e5e8c commit 9ba8bb2

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
@@ -36,6 +36,18 @@ use proc_macro::TokenStream;
3636
/// author: "Rust for Linux Contributors",
3737
/// description: "My very own kernel module!",
3838
/// license: "GPL",
39+
/// params: {
40+
/// my_i32: i32 {
41+
/// default: 42,
42+
/// permissions: 0o000,
43+
/// description: "Example of i32",
44+
/// },
45+
/// writeable_i32: i32 {
46+
/// default: 42,
47+
/// permissions: 0o644,
48+
/// description: "Example of i32",
49+
/// },
50+
/// },
3951
/// }
4052
///
4153
/// struct MyModule;

0 commit comments

Comments
 (0)