aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/refcount.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <[email protected]>2025-06-10 13:28:21 +0000
committerAndreas Hindborg <[email protected]>2025-06-24 17:52:47 +0000
commitd9fc00dc73542eef98db74085447c57174ca290d (patch)
tree5b3c3f06c0c96698d02a6f6759148a502afec7f0 /rust/helpers/refcount.c
parentrust: time: Replace HrTimerMode enum with trait-based mode types (diff)
downloadkernel-d9fc00dc73542eef98db74085447c57174ca290d.tar.gz
kernel-d9fc00dc73542eef98db74085447c57174ca290d.zip
rust: time: Add HrTimerExpires trait
Introduce the `HrTimerExpires` trait to represent types that can be used as expiration values for high-resolution timers. Define a required method, `into_nanos()`, which returns the expiration time as a raw nanosecond value suitable for use with C's hrtimer APIs. Also extend the `HrTimerMode` to use the `HrTimerExpires` trait. This refactoring is a preparation for enabling hrtimer code to work uniformly with both absolute and relative expiration modes. Reviewed-by: Andreas Hindborg <[email protected]> Signed-off-by: FUJITA Tomonori <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ changed conversion method names to `as_*` - Andreas ] Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'rust/helpers/refcount.c')
0 files changed, 0 insertions, 0 deletions