#include <timer.h>
#include <interrupt.h>
#include <scheduler.h>
#include <timer_defines.h>
#include <x86/irq_list.h>
#include <x86/proc_reg.h>
#include <x86/pio.h>
#include <stdlib.h>
#include <malloc.h>
Functions | |
void | timer_handler (InterruptVector vector, Registers *registers) |
int | timer_initialize (void) |
Initialize timer facilities. | |
unsigned int | get_ticks (void) |
The number of ticks since boot. | |
Timer * | timer_create (unsigned int delta) |
Create a new timer. | |
void | timer_activate (Timer *timer) |
Activate a timer. | |
void | timer_destroy (Timer *timer) |
Destroy a timer. | |
Variables | |
unsigned int | ticks = 0 |
List | timers |
Hassaan Moin Khan (hkhan)
|
The number of ticks since boot. Return the number of ticks elapsed since initializing the timer.
|
|
Activate a timer. Install the timer so that it will expire at its deadline.
|
|
Create a new timer. Create a new timer to expire a certain number of ticks from now. The timer must be activated after threads have been suspended on the resource before it will wait for expiration.
|
|
Destroy a timer. Free any memory resources associated with a timer.
|
|
Initialize timer facilities. Initialize the timer facilities and start up the timer.
|