diff options
author | Boqun Feng <[email protected]> | 2024-04-11 16:08:00 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-05-01 00:04:47 +0200 |
commit | ddd9120983c3efbcaa3a4c7777da1440f8ce27d8 (patch) | |
tree | 1dbb05f1eef090bb7a0942243d6c5429c3d18a06 | |
parent | 54db412e618e9c43e5167f809a901f554e8c43e2 (diff) |
rust: time: doc: Add missing C header links
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | rust/kernel/time.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/kernel/time.rs b/rust/kernel/time.rs index 6811d5cadbd4..e3bb5e89f88d 100644 --- a/rust/kernel/time.rs +++ b/rust/kernel/time.rs @@ -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; |