内核版本:v4.14
在Linux内核驱动开发过程中,定时器是我们经常用到的一个东西,我们可以使用定时器延时执行一个任务或者轮询执行某一任务。
相关结构体:
struct timer_list {
/*
* All fields that change during normal runtime grouped to the
* same cacheline
*/
struct hlist_node entry;
unsigned long expires;
void (*function)(unsigned long);
unsigned long data;
u32 flags;
#ifdef