MOS Source Code
Loading...
Searching...
No Matches
timer.c File Reference
+ Include dependency graph for timer.c:

Go to the source code of this file.

Functions

static bool timer_do_wakeup (ktimer_t *timer, void *arg)
 
void timer_tick ()
 
long timer_msleep (u64 ms)
 

Variables

static list_head timer_queue = LIST_HEAD_INIT(timer_queue)
 list of timers that are waiting to be executed
 
static spinlock_t timer_queue_lock = SPINLOCK_INIT
 

Function Documentation

◆ timer_do_wakeup()

static bool timer_do_wakeup ( ktimer_t * timer,
void * arg )
static

Definition at line 15 of file timer.c.

Referenced by timer_msleep().

+ Here is the call graph for this function:

◆ timer_tick()

void timer_tick ( void )

Definition at line 25 of file timer.c.

Referenced by clocksource_tick().

◆ timer_msleep()

long timer_msleep ( u64 ms)

Definition at line 39 of file timer.c.

Referenced by clock_msleep(), and vfs_flusher_entry().

+ Here is the call graph for this function:

Variable Documentation

◆ timer_queue

list_head timer_queue = LIST_HEAD_INIT(timer_queue)
static

list of timers that are waiting to be executed

Definition at line 12 of file timer.c.

Referenced by timer_msleep(), and timer_tick().

◆ timer_queue_lock

spinlock_t timer_queue_lock = SPINLOCK_INIT
static

Definition at line 13 of file timer.c.

Referenced by timer_msleep(), and timer_tick().