Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -2
+2 -2
rust/kernel/task.rs
··· 158 158 } 159 159 } 160 160 161 - /// Returns a PidNamespace reference for the currently executing task's/thread's pid namespace. 161 + /// Returns a [`PidNamespace`] reference for the currently executing task's/thread's pid namespace. 162 162 /// 163 163 /// This function can be used to create an unbounded lifetime by e.g., storing the returned 164 - /// PidNamespace in a global variable which would be a bug. So the recommended way to get the 164 + /// [`PidNamespace`] in a global variable which would be a bug. So the recommended way to get the 165 165 /// current task's/thread's pid namespace is to use the [`current_pid_ns`] macro because it is 166 166 /// safe. 167 167 ///