]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: time: doc: Add missing C header links
authorBoqun Feng <boqun.feng@gmail.com>
Thu, 11 Apr 2024 23:08:00 +0000 (16:08 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 30 Apr 2024 22:04:47 +0000 (00:04 +0200)
The definitions related to jiffies are at linux/jiffies.h, and the
definitions related to ktime_t are at linux/ktime.h, since
`kernel::time` provides the functionality dealing with jiffies and
ktime_t, it makes sense to add links to them from Rust's time module.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20240411230801.1504496-2-boqun.feng@gmail.com
rust/kernel/time.rs

index 6811d5cadbd40dc5e035c510d7a6f3cd314892d4..e3bb5e89f88dac423e2c0083de8fdfe5ac9a272f 100644 (file)
@@ -4,6 +4,9 @@
 //!
 //! This module contains the kernel APIs related to time and timers that
 //! have been ported or wrapped for usage by Rust code in the kernel.
+//!
+//! C header: [`include/linux/jiffies.h`](srctree/include/linux/jiffies.h).
+//! C header: [`include/linux/ktime.h`](srctree/include/linux/ktime.h).
 
 /// The number of nanoseconds per millisecond.
 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;