[PATCH 1/5] rust: time: doc: Add missing C header link to jiffies

Boqun Feng posted 5 patches 1 year, 10 months ago
[PATCH 1/5] rust: time: doc: Add missing C header link to jiffies
Posted by Boqun Feng 1 year, 10 months ago
The definitions related to jiffies are at linux/jiffies.h, and since
`kernel::time` provides the functionality dealing with jiffies, it makes
sense to add a link to it from Rust's time module.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
---
 rust/kernel/time.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rust/kernel/time.rs b/rust/kernel/time.rs
index 25a896eed468..bbb666e64dd7 100644
--- a/rust/kernel/time.rs
+++ b/rust/kernel/time.rs
@@ -4,6 +4,8 @@
 //!
 //! 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).
 
 /// The time unit of Linux kernel. One jiffy equals (1/HZ) second.
 pub type Jiffies = core::ffi::c_ulong;
-- 
2.44.0
Re: [PATCH 1/5] rust: time: doc: Add missing C header link to jiffies
Posted by Benno Lossin 1 year, 10 months ago
On 24.03.24 23:33, Boqun Feng wrote:> The definitions related to jiffies are at linux/jiffies.h, and since
> `kernel::time` provides the functionality dealing with jiffies, it makes
> sense to add a link to it from Rust's time module.
> 
> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
> ---
>   rust/kernel/time.rs | 2 ++
>   1 file changed, 2 insertions(+)

Reviewed-by: Benno Lossin <benno.lossin@proton.me>

-- 
Cheers,
Benno