|
PatchworkOS
da8a090
A non-POSIX operating system.
|
Timer source structure. More...
#include <timer.h>
Data Fields | |
| const char * | name |
| clock_t | precision |
| void(* | set )(irq_virt_t virt, clock_t uptime, clock_t timeout) |
| Should set the one-shot timer to fire after the specified timeout. | |
| void(* | ack )(cpu_t *cpu) |
| void(* | eoi )(cpu_t *cpu) |
| void(* timer_source_t::set) (irq_virt_t virt, clock_t uptime, clock_t timeout) |
Should set the one-shot timer to fire after the specified timeout.
Should panic on failure, as failing to set a timer will almost certainly result in the system hanging.
| virt | The virtual IRQ to use for the timer interrupt, usually VECTOR_TIMER. |
| uptime | The current uptime in nanoseconds. |
| timeout | The desired timeout in nanoseconds, if CLOCKS_NEVER, the timer should be disabled. |