lkml.org 
[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Doubt in Kernel Timers
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.054 / U:6.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site