Re: [PATCH] rust: hrtimer: add active() method to query timer state
From: FUJITA Tomonori
Date: Fri Feb 27 2026 - 23:57:49 EST
On Sun, 15 Feb 2026 21:29:53 +0100
Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
> Add an `active()` method to HrTimer that returns true if the timer is in
> the started or running states. This wraps the kernel's hrtimer_active()
> function.
>
> Also add documentation clarifying the definition of an active timer.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> ---
> rust/kernel/time/hrtimer.rs | 10 ++++++++++
> 1 file changed, 10 insertions(+)
Reviewed-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>