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: kernel: use docs.kernel.org links in code documentation

Use links to docs.kernel.org instead of www.kernel.org/doc/html/latest
in the code documentation. The links are shorter and cleaner.

Link: https://github.com/Rust-for-Linux/linux/issues/1101
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
[ Reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Michael Vetter and committed by
Miguel Ojeda
c7305116 f3639304

+11 -11
+10 -10
rust/kernel/print.rs
··· 4 4 //! 5 5 //! C header: [`include/linux/printk.h`](srctree/include/linux/printk.h) 6 6 //! 7 - //! Reference: <https://www.kernel.org/doc/html/latest/core-api/printk-basics.html> 7 + //! Reference: <https://docs.kernel.org/core-api/printk-basics.html> 8 8 9 9 use core::{ 10 10 ffi::{c_char, c_void}, ··· 197 197 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 198 198 /// `alloc::format!` for information about the formatting syntax. 199 199 /// 200 - /// [`pr_emerg`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_emerg 200 + /// [`pr_emerg`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_emerg 201 201 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 202 202 /// 203 203 /// # Examples ··· 221 221 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 222 222 /// `alloc::format!` for information about the formatting syntax. 223 223 /// 224 - /// [`pr_alert`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_alert 224 + /// [`pr_alert`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_alert 225 225 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 226 226 /// 227 227 /// # Examples ··· 245 245 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 246 246 /// `alloc::format!` for information about the formatting syntax. 247 247 /// 248 - /// [`pr_crit`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_crit 248 + /// [`pr_crit`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_crit 249 249 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 250 250 /// 251 251 /// # Examples ··· 269 269 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 270 270 /// `alloc::format!` for information about the formatting syntax. 271 271 /// 272 - /// [`pr_err`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_err 272 + /// [`pr_err`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_err 273 273 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 274 274 /// 275 275 /// # Examples ··· 293 293 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 294 294 /// `alloc::format!` for information about the formatting syntax. 295 295 /// 296 - /// [`pr_warn`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_warn 296 + /// [`pr_warn`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_warn 297 297 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 298 298 /// 299 299 /// # Examples ··· 317 317 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 318 318 /// `alloc::format!` for information about the formatting syntax. 319 319 /// 320 - /// [`pr_notice`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_notice 320 + /// [`pr_notice`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_notice 321 321 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 322 322 /// 323 323 /// # Examples ··· 341 341 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 342 342 /// `alloc::format!` for information about the formatting syntax. 343 343 /// 344 - /// [`pr_info`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_info 344 + /// [`pr_info`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_info 345 345 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 346 346 /// 347 347 /// # Examples ··· 367 367 /// Mimics the interface of [`std::print!`]. See [`core::fmt`] and 368 368 /// `alloc::format!` for information about the formatting syntax. 369 369 /// 370 - /// [`pr_debug`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_debug 370 + /// [`pr_debug`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_debug 371 371 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 372 372 /// 373 373 /// # Examples ··· 395 395 /// `alloc::format!` for information about the formatting syntax. 396 396 /// 397 397 /// [`pr_info!`]: crate::pr_info! 398 - /// [`pr_cont`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html#c.pr_cont 398 + /// [`pr_cont`]: https://docs.kernel.org/core-api/printk-basics.html#c.pr_cont 399 399 /// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html 400 400 /// 401 401 /// # Examples
+1 -1
rust/kernel/std_vendor.rs
··· 136 136 /// 137 137 /// [`std::dbg`]: https://doc.rust-lang.org/std/macro.dbg.html 138 138 /// [`eprintln`]: https://doc.rust-lang.org/std/macro.eprintln.html 139 - /// [`printk`]: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html 139 + /// [`printk`]: https://docs.kernel.org/core-api/printk-basics.html 140 140 /// [`pr_info`]: crate::pr_info! 141 141 /// [`pr_debug`]: crate::pr_debug! 142 142 #[macro_export]