Description: linux device driver- kernel timers
In the Linux kernel, by the time a global variable named jiffies measure, the number of ticks since the start of the identification system variable passed. At the lowest level, to calculate the number of ticks depends on the specific hardware platform running however, usually during the tick count interrupt still continues.
Linux provides a simple API to construct and manage timer. It contains a number of functions (and helper functions), it is used to create, manage and cancel timers.
Timer by timer_list structure definition, the structure includes a timer to achieve all of the data required (including list pointers and optional timer statistics at compile time configuration). From the user perspective, timer_list contains an expiration date, a callback function (when/if the timer expires), as well as the context of a user. The user must initialize the timer can be taken several ways, the easiest way is to call setup_timer, the function initial
To Search:
File list (Check if you may need any files):
1st\1.txt
...\kernel_timer_test_01.c
...\kernel_timer_test_01.ko
...\kernel_timer_test_01.ko.unsigned
...\Makefile
2nd\kernel_timer_test_02.c
...\kernel_timer_test_02.ko
...\kernel_timer_test_02.ko.unsigned
...\Makefile
...\Makefile_
...\新建文本文档.txt
3rd\kernel_timer_test_03.c
...\kernel_timer_test_03.ko
...\kernel_timer_test_03.ko.unsigned
...\Makefile
...\Makefile_
1st
2nd
3rd