我的ubuntu是 32位的 16.04
代码: 全选
init_timer(&stats_timer);
stats_timer.expires=jiffies + HZ;
stats_timer.data=(unsigned long) pdev;
stats_timer.function = poll_stats;
add_timer(&stats_timer);
我打开了从系统拷贝的内核<linux/timer.h>,发现里面确实找不到上面说的
代码: 全选
struct timer_list {
/*
* All fields that change during normal runtime grouped to the
* same cacheline
*/
struct hlist_node entry;
unsigned long expires;
void (*function)(struct timer_list *);
u32 flags;
#ifdef CONFIG_LOCKDEP
struct lockdep_map lockdep_map;
#endif
};