Adding a sleep / timer to the kernel module

I need to do the job at regular intervals in the kernel module after loading the module. How do I achieve this. Examples on the Internet show hello world in init_module and exit_module. I have not seen any literature on how to regularly code events inside a kernel module. Can someone ask for input? Thanks

+3
source share
3 answers

Take a look at this Linux article: Kernel APIs, Part 3: Timers and Lists in the 2.6 Kernel

It has an example module that uses both a simple API timer and high-resolution timers.

+2
source

Take a look at Chapter 7 LDD:

http://lwn.net/Kernel/LDD3/

0
source

All Articles