Re: Doubt in Kernel Timers

From: sekhar raja (manamraja@yahoo.com)
Date: Tue Nov 27 2001 - 02:08:45 EST


Do we need to Stop the timers if we want to Restart
the timers with new expiry time.

I see in some implementations the timers are not
stoped before before they restart. Is it correct?

Thanks in Advance
-Rajasekhar

--- Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> On Mon, 26 Nov 2001 04:55:17 -0800 (PST)
> sekhar raja <manamraja@yahoo.com> wrote:
>
> > What do i mean is with out Doing add_timer() can
> we
> > use del_timer().
>
> george anzinger is right, you may del_timer() at any
> time.
> If the timer was actually queued, del_timer()
> returns 0, otherwise, it
> returns 1.
>
> But you should use del_timer_sync() to be sure, that
> your timer function
> is not currentky running on other CPU.
>
>
> > Thanks in Advance
> > -Rajasekhar
> ---
> WBR. //s0mbre

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-
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/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:25 EST