Commit 67f9c312 authored by Aswin Unnikrishnan's avatar Aswin Unnikrishnan Committed by Miguel Ojeda
Browse files

rust: add example for `alias` argument in `module` macro documentation



Add example for `alias` argument supported by `module` macro.
`alias` accepts an array of alternate names for the module as string.

Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarAswin Unnikrishnan <aswinunni01@gmail.com>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240512112324.8514-1-aswinunni01@gmail.com


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 256abd8e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
///     author: "Rust for Linux Contributors",
///     description: "My very own kernel module!",
///     license: "GPL",
///     alias: ["alternate_module_name"],
/// }
///
/// struct MyModule;