Re: [PATCH v11 03/13] rust: hrtimer: implement `HrTimerPointer` for `Arc`
From: Benno Lossin
Date: Sun Mar 09 2025 - 06:50:59 EST
On Fri Mar 7, 2025 at 10:38 PM CET, Andreas Hindborg wrote:
> Allow the use of intrusive `hrtimer` fields in structs that are managed by
> an `Arc` by implementing `HrTimerPointer` and `RawTimerCallbck` for `Arc`.
>
> Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
> Reviewed-by: Lyude Paul <lyude@xxxxxxxxxx>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
With the safety comment adjusted as I mentioned in the other thread:
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
Cheers,
Benno
> ---
> rust/kernel/time/hrtimer.rs | 4 +-
> rust/kernel/time/hrtimer/arc.rs | 102 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 105 insertions(+), 1 deletion(-)