MOS Source Code
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
7
8typedef struct _ktimer ktimer_t;
9
10typedef bool (*timer_callback_t)(ktimer_t *timer, void *arg);
11
21
22void timer_tick(void);
23
24long timer_msleep(u64 ms);
int bool
Definition pb_syshdr.h:57
thread_t * thread
Definition timer.h:16
u64 timeout
Definition timer.h:15
as_linked_list
Definition timer.h:14
timer_callback_t callback
Definition timer.h:18
void * arg
Definition timer.h:19
bool ticked
Definition timer.h:17
long timer_msleep(u64 ms)
Definition timer.c:39
void timer_tick(void)
Definition timer.c:25
bool(* timer_callback_t)(ktimer_t *timer, void *arg)
Definition timer.h:10
struct _ktimer ktimer_t
Definition timer.h:8
unsigned long long u64
Definition types.h:23