October 2017
Intermediate to advanced
586 pages
14h 8m
English
A timer is represented in the kernel as an instance of timer_list:
#include <linux/timer.h>
struct timer_list {
struct list_head entry;
unsigned long expires;
struct tvec_t_base_s *base;
void (*function)(unsigned long);
unsigned long data;
);
expires is an absolute value in jiffies. entry is a doubly linked list and data is optional, and passed to the callback function.