mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-21 03:28:55 +00:00
30 lines
700 B
C
30 lines
700 B
C
|
|
#ifndef _LINUX_HRTIMER_H_
|
|
#define _LINUX_HRTIMER_H_
|
|
#include <linux/timer.h>
|
|
#include <linux/workqueue.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef CLOCK_REALTIME
|
|
#define CLOCK_REALTIME (0)
|
|
#endif
|
|
#define HRTIMER_MODE_ABS (0)
|
|
|
|
struct tasklet_hrtimer {
|
|
struct timer_list timer;
|
|
struct tasklet_struct task;
|
|
};
|
|
|
|
void tasklet_hrtimer_init(struct tasklet_hrtimer *timer,
|
|
void (*cb)(struct tasklet_hrtimer *timer), int c, int mode);
|
|
void tasklet_hrtimer_deinit(struct tasklet_hrtimer *timer);
|
|
void tasklet_hrtimer_cancel(struct tasklet_hrtimer *timer);
|
|
void tasklet_hrtimer_start(struct tasklet_hrtimer *timer, int timeout);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|