Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ddd9120

Browse files
fbqKAGA-KOKO
authored andcommitted
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 <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
1 parent 54db412 commit ddd9120

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/kernel/time.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//!
55
//! This module contains the kernel APIs related to time and timers that
66
//! have been ported or wrapped for usage by Rust code in the kernel.
7+
//!
8+
//! C header: [`include/linux/jiffies.h`](srctree/include/linux/jiffies.h).
9+
//! C header: [`include/linux/ktime.h`](srctree/include/linux/ktime.h).
710
811
/// The number of nanoseconds per millisecond.
912
pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;

0 commit comments

Comments
 (0)