Skip to content

Commit b4aeb2d

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 6d77fa6 commit b4aeb2d

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
@@ -37,6 +37,18 @@ use proc_macro::TokenStream;
3737
/// description: "My very own kernel module!",
3838
/// license: "GPL",
3939
/// alias: ["alternate_module_name"],
40+
/// params: {
41+
/// my_i32: i32 {
42+
/// default: 42,
43+
/// permissions: 0o000,
44+
/// description: "Example of i32",
45+
/// },
46+
/// writeable_i32: i32 {
47+
/// default: 42,
48+
/// permissions: 0o644,
49+
/// description: "Example of i32",
50+
/// },
51+
/// },
4052
/// }
4153
///
4254
/// struct MyModule;

0 commit comments

Comments
 (0)