[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87jz5y1g1f.fsf@kernel.org>
Date: Fri, 30 May 2025 13:42:04 +0200
From: Andreas Hindborg <a.hindborg@...nel.org>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: rust-for-linux@...r.kernel.org, boqun.feng@...il.com,
frederic@...nel.org, lyude@...hat.com, tglx@...utronix.de,
anna-maria@...utronix.de, jstultz@...gle.com, sboyd@...nel.org,
ojeda@...nel.org, alex.gaynor@...il.com, gary@...yguo.net,
bjorn3_gh@...tonmail.com, benno.lossin@...ton.me, aliceryhl@...gle.com,
tmgross@...ch.edu, dakr@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/3] rust: time: Make Instant generic over ClockSource
FUJITA Tomonori <fujita.tomonori@...il.com> writes:
> Refactor the Instant type to be generic over a ClockSource type
> parameter, enabling static enforcement of clock correctness across
> APIs that deal with time. Previously, the clock source was implicitly
> fixed (typically CLOCK_MONOTONIC), and developers had to ensure
> compatibility manually.
>
> This design eliminates runtime mismatches between clock sources, and
> enables stronger type-level guarantees throughout the timer subsystem.
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@...il.com>
Reviewed-by: Andreas Hindborg <a.hindborg@...nel.org>
Best regards,
Andreas Hindborg
Powered by blists - more mailing lists