[PATCH 0/6] rust/hrtimer: Various hrtimer + time additions

From: Lyude Paul
Date: Wed Apr 02 2025 - 17:41:28 EST


This is a collection of various bindings that I added to hrtimer when I
was originally getting it ready to be used in rvkms. I've mostly been
waiting for Andreas's hrtimer series to go upstream before submitting
these.

All of these are currently being used within rvkms for vblank emulation.

Lyude Paul (6):
rust: time: Add Ktime::from_ns()
rust: hrtimer: Add HrTimerCallbackContext and ::forward()
rust: hrtimer: Add HrTimerClockBase
rust: hrtimer: Add HrTimerClockBase::time()
rust: hrtimer: Add HrTimerCallbackContext::forward_now()
rust: hrtimer: Add HrTimerCallback::expires()

rust/kernel/time.rs | 10 ++-
rust/kernel/time/hrtimer.rs | 127 +++++++++++++++++++++++++++-
rust/kernel/time/hrtimer/arc.rs | 7 +-
rust/kernel/time/hrtimer/pin.rs | 7 +-
rust/kernel/time/hrtimer/pin_mut.rs | 9 +-
rust/kernel/time/hrtimer/tbox.rs | 7 +-
6 files changed, 157 insertions(+), 10 deletions(-)


base-commit: 142d93914b8575753f56f0c3571bd81f214b7418
--
2.48.1