How to Implement Periodic Timer in Linux Kernel

Linux Kernel already has a timer module that allows us to create timers which are not periodic by default. We can specify a callback function and a timeout value to the module. After expiry of the timeout value, the callback function will be called. Problem is the callback function will be called only once. Here we’ll … Continue reading “How to Implement Periodic Timer in Linux Kernel”

How to Implement Multiple Periodic Timers in Linux Kernel

Here we’ll see how to implement a timer module in Linux kernel that will allow users to create multiple periodic timers at the same time. Kernel already has a timer module that allows us to create multiple timers but the timers are not periodic. Using that module we get timeout signal (callback function) only once, after … Continue reading “How to Implement Multiple Periodic Timers in Linux Kernel”

How to Compile Linux Kernel Module

Linux has a build infrastructure called “kbuild” to build in-tree and out-of-tree kernel modules. Here I’ll focus on external or out-of-tree kernel module compilation. Linux “kbuild” infrastructure is fairly complicated, better not to go into that. Here we’ll see how to create a Makefile to compile one or more source files into an external kernel … Continue reading “How to Compile Linux Kernel Module”

Linux Kernel Programming Basics, Create Loadable Kernel Module

What is Linux Kernel? Kernel is the core and central part of the Linux Operating system. It is responsible for the most critical functions of the operating system like process scheduling, memory management, file system management, device handling, networking, interrupt handing etc. It runs on a restricted part of the physical memory, known as Kernel … Continue reading “Linux Kernel Programming Basics, Create Loadable Kernel Module”

0
0
0
0
0
1