[리눅스커널] 시간관리: 동적 타이머 자료구조 struct list 소개

Guillermo Austin Kim|2019년 8월 13일
Posts

[리눅스커널] 시간관리: 동적 타이머 자료구조 struct list 소개

Guillermo Austin Kim|2019년 8월 13일

동적 타이머 초기화 과정을 살펴보기 전 동적 타이머 자료구조인 struct timer_list 구조체를 소개합니다.[https://github.com/raspberrypi/linux/blob/rpi-4.19.y/include/linux/timer.h]01 struct timer_list {02 struct hlist_node entry;03 unsigned long expires;04 void (*function)(struct timer_list *);05 u32 flags;0607 #ifdef CONFIG_LOCKDEP08 struct lockdep_map lockdep_map;09 #endif10 }; 구조체 각 필드들의 의미를 살펴보겠습니다. struct hlist_node entry;해시