Linux Timer Handling | |
This is from kernel/timer.c | |
void | add_timer (struct timer_list *timer) |
Add One-Shot Timer. | |
int | mod_timer (struct timer_list *timer, unsigned long expires) |
Modify One-Shot Timer. | |
int | del_timer (struct timer_list *timer) |
Delete One-Shot Timer. | |
int | __timer_sleep (l4_timeout_t to) |
Timer Sleep Implementation. | |
Functions | |
int | l4dde_time_init () |
Initialize Timer Thread. |
One-shot timers in Linux are executed as a bottom half (TIMER_BH). Therefore only other BHs are prohibited while a timer function is executed.
Requirements: (additionally to Global Requirements)
jiffies
and HZ
have to be implemented as time base (perhaps using l4io)
|
Timer Sleep Implementation.
Definition at line 269 of file time.c. References timer_tid, and timerlist_lock. Referenced by dde_timer_thread(). |
|
Add One-Shot Timer.
Definition at line 174 of file time.c. References __internal_add_timer(), and timerlist_lock. Referenced by FASTCALL(). |
|
Delete One-Shot Timer.
Definition at line 214 of file time.c. References __internal_detach_timer(), and timerlist_lock. |
|
Initialize Timer Thread.
Definition at line 417 of file time.c. References _initialized, and dde_timer_thread(). |
|
Modify One-Shot Timer.
Definition at line 195 of file time.c. References __internal_add_timer(), __internal_detach_timer(), and timerlist_lock. |