diff options
| author | FUJITA Tomonori <[email protected]> | 2025-06-10 09:32:55 +0000 |
|---|---|---|
| committer | Andreas Hindborg <[email protected]> | 2025-06-16 13:01:56 +0000 |
| commit | 768dfbfc98e26cfad45f7165a1801d188f3cbd81 (patch) | |
| tree | 876575ca9de53c7980c32cef1c20f3b1f29cddb1 /rust/helpers/signal.c | |
| parent | rust: time: Replace ClockId enum with ClockSource trait (diff) | |
| download | kernel-768dfbfc98e26cfad45f7165a1801d188f3cbd81.tar.gz kernel-768dfbfc98e26cfad45f7165a1801d188f3cbd81.zip | |
rust: time: Make Instant generic over ClockSource
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.
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Signed-off-by: FUJITA Tomonori <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions
