Re: [PATCH v11 07/13] rust: hrtimer: implement `UnsafeHrTimerPointer` for `Pin<&T>`
From: Benno Lossin
Date: Sun Mar 09 2025 - 06:08:13 EST
On Fri Mar 7, 2025 at 10:38 PM CET, Andreas Hindborg wrote:
> Allow pinned references to structs that contain a `HrTimer` node to be
> scheduled with the `hrtimer` subsystem.
>
> 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 | 2 +
> rust/kernel/time/hrtimer/pin.rs | 104 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 106 insertions(+)