summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-03-24 22:03:56 +0100
committerMiguel Ojeda <ojeda@kernel.org>2025-05-25 22:58:35 +0200
commitf54c750333381bfeaa0e4a69b9563d4e4e21f1b3 (patch)
tree5e78078c8a961185923e7d3f6344ad77b9f4435f /rust/kernel
parent1dbaf8b1bafb8557904eb54b98bb323a3061dd2c (diff)
rust: task: add missing Markdown code spans and intra-doc links
Add missing Markdown code spans and also convert them into intra-doc links. This was found using the Clippy `doc_markdown` lint, which we may want to enable. Fixes: e0020ba6cbcb ("rust: add PidNamespace") Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20250324210359.1199574-10-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/task.rs b/rust/kernel/task.rs
index 9e6f6854948d..9dce3705ff63 100644
--- a/rust/kernel/task.rs
+++ b/rust/kernel/task.rs
@@ -158,10 +158,10 @@ impl Task {
}
}
- /// Returns a PidNamespace reference for the currently executing task's/thread's pid namespace.
+ /// Returns a [`PidNamespace`] reference for the currently executing task's/thread's pid namespace.
///
/// This function can be used to create an unbounded lifetime by e.g., storing the returned
- /// PidNamespace in a global variable which would be a bug. So the recommended way to get the
+ /// [`PidNamespace`] in a global variable which would be a bug. So the recommended way to get the
/// current task's/thread's pid namespace is to use the [`current_pid_ns`] macro because it is
/// safe.
///