We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
params
module
1 parent 40e5e8c commit 9ba8bb2Copy full SHA for 9ba8bb2
1 file changed
rust/macros/lib.rs
@@ -36,6 +36,18 @@ use proc_macro::TokenStream;
36
/// author: "Rust for Linux Contributors",
37
/// description: "My very own kernel module!",
38
/// 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
47
+/// permissions: 0o644,
48
49
50
51
/// }
52
///
53
/// struct MyModule;
0 commit comments