Re: Doubt in Kernel Timers

george anzinger (george@mvista.com)
Mon, 26 Nov 2001 09:58:07 -0800


sekhar raja wrote:
>
> Hi Folks
>
> I have a doubt in Kernel Timers, Can we delete the
> Timer with out adding it to the timer List.
>
> What do i mean is with out Doing add_timer() can we
> use del_timer().
>
> If we can not do that, how do we check whether the
> particular timer is running or not.
>
> Your help will be greatly Appreciated, Please CC me
> the Answer as i am not Subscribe to the mailing list.
>
> Thanks in Advance
> -Rajasekhar
>
A quick glance at the source would assure you that YES you can
del_timer() at any time. Looking at this code you would discover that
the list linkage being NULL indicates that the timer is not active.

Read the SOURCE.

-- 
George           george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/