aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/io.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <[email protected]>2025-06-10 09:32:54 +0000
committerAndreas Hindborg <[email protected]>2025-06-16 13:01:37 +0000
commit1664a671be46a0b0daf5250eb124d94a5501a64c (patch)
tree25bb29707b46024c185ca5ad2a4d5db4fe2325b1 /rust/helpers/io.c
parentrust: time: Avoid 64-bit integer division on 32-bit architectures (diff)
downloadkernel-1664a671be46a0b0daf5250eb124d94a5501a64c.tar.gz
kernel-1664a671be46a0b0daf5250eb124d94a5501a64c.zip
rust: time: Replace ClockId enum with ClockSource trait
Replace the ClockId enum with a trait-based abstraction called ClockSource. This change enables expressing clock sources as types and leveraging the Rust type system to enforce clock correctness at compile time. This also sets the stage for future generic abstractions over Instant types such as Instant<C>. 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/io.c')
0 files changed, 0 insertions, 0 deletions