Re: Any idea about watchdog timer in linux

From: george anzinger (george@mvista.com)
Date: Sun Dec 30 2001 - 05:11:54 EST


Kousalya K wrote:
>
> Hi all,
>
> I wanted to call a timer function to get current time within kernel space. I
> don't want any function call to do this.
> Any idea ? In AIX we have watchdog stucture and w_stop, w_start, w_init
> functions are there to stop, initiate and start the watchdog timer.
> Anything like that is available in linux?
>
I think you are after the add_timer() del_timer_sync() stuff. These
timers are in units of HZ and cause a function to be called when they
expire. Most of them are deleted prior to expire time.

-- 
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/



This archive was generated by hypermail 2b29 : Mon Dec 31 2001 - 21:00:22 EST