diff options
author | Aswin Unnikrishnan <aswinunni01@gmail.com> | 2024-05-12 13:23:20 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-07-08 22:20:08 +0200 |
commit | 67f9c312b0a7f4bc869376d2a68308e673235954 (patch) | |
tree | ab5c16df39b5c64fa9405d00b4b24ed410dc5cc6 /rust | |
parent | Linux 6.10-rc7 (diff) | |
download | linux-67f9c312b0a7f4bc869376d2a68308e673235954.tar.xz linux-67f9c312b0a7f4bc869376d2a68308e673235954.zip |
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: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Aswin Unnikrishnan <aswinunni01@gmail.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240512112324.8514-1-aswinunni01@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r-- | rust/macros/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/macros/lib.rs b/rust/macros/lib.rs index 520eae5fd792..aa89b41fa10e 100644 --- a/rust/macros/lib.rs +++ b/rust/macros/lib.rs @@ -35,6 +35,7 @@ use proc_macro::TokenStream; /// author: "Rust for Linux Contributors", /// description: "My very own kernel module!", /// license: "GPL", +/// alias: ["alternate_module_name"], /// } /// /// struct MyModule; |