🌐
GitHub
github.com › dwmkerr › linux-kernel-module
GitHub - dwmkerr/linux-kernel-module: A simple Linux Kernel Module, written as a learning exercise. · GitHub
echo 'KERNEL=="babel", SUBSYSTEM=="babel", MODE="0666"' >> /etc/udev/rules.d/99-babel.rules · Reload the driver and it will be accessible without superuser rights. ... Then make sure you are not trying to install the module from a shared location (such as a shared folder on a virtual machine). Copy it to the home directory and install from there instead. ... With the inspiration from the "Introduction to Linux Kernels" webinar from the Linux Foundation.
Starred by 41 users
Forked by 52 users
Languages   C 93.5% | Makefile 6.5%
🌐
GitHub
github.com › sysprog21 › lkmpg
GitHub - sysprog21/lkmpg: The Linux Kernel Module Programming Guide (updated for 5.0+ kernels) · GitHub
This project keeps the Linux Kernel Module Programming Guide up to date, with working examples for recent 5.x and 6.x kernel versions.
Starred by 8.5K users
Forked by 620 users
Languages   TeX 82.1% | Shell 17.4% | Makefile 0.5%
🌐
GitHub
github.com › psachin › kernel_modules
GitHub - psachin/kernel_modules: linux kernel modules examples
# Visit module directory cd hello # Compile module make # Display module information modinfo hello.ko # Insert module sudo insmod hello.ko # Remove module sudo rmmod hello.ko
Starred by 14 users
Forked by 2 users
Languages   C 90.1% | Makefile 9.9% | C 90.1% | Makefile 9.9%
🌐
GitHub
github.com › topics › linux-kernel-module
linux-kernel-module · GitHub Topics · GitHub
isdb dtv linux-kernel-module linux-kernel-driver isdb-t isdb-s ... Mouse acceleration driver and kernel module for Linux.
🌐
The Linux Kernel Module Programming Guide
sysprog21.github.io › lkmpg
The Linux Kernel Module Programming Guide
May 27, 2026 - Most individuals beginning their programming journey typically start with some variant of a hello world example. It is unclear what the outcomes are for those who deviate from this tradition, but it seems prudent to adhere to it. The learning process will begin with a series of hello world programs that illustrate various fundamental aspects of writing a kernel module. Presented next is the simplest possible module. ... 1/* 2 * hello-1.c - The simplest kernel module. 3 */ 4#include <linux/module.h> /* Needed by all modules */ 5#include <linux/printk.h> /* Needed for pr_info() */ 6 7int init_module(void) 8{ 9 pr_info("Hello world 1.\n"); 10 11 /* A nonzero return means init_module failed; module can't be loaded.
🌐
GitHub
github.com › s-vincent › kernel-modules
GitHub - s-vincent/kernel-modules: Linux kernel modules samples.
Kernel modules samples for GNU/Linux, FreeBSD and NetBSD.
Starred by 7 users
Forked by 4 users
Languages   C 88.1% | Makefile 11.9% | C 88.1% | Makefile 11.9%
🌐
GitHub
github.com › almariah › kernel-module-example
GitHub - almariah/kernel-module-example: An example of Linux kernel module · GitHub
An example of Linux kernel module. Contribute to almariah/kernel-module-example development by creating an account on GitHub.
Author   almariah
🌐
GitHub
github.com › felsocim › LKM
GitHub - felsocim/LKM: Basic examples of Linux kernel modules · GitHub
This repository contains the sources of two simple modules for Linux kernels developed for my assignement for Embedded Systems courses at the University of Strasbourg. I hope these examples will help someone who wants to discover the basics of drivers development for Linux systems.
Author   felsocim
🌐
Linux Kernel Labs
linux-kernel-labs.github.io › refs › heads › master › labs › kernel_modules.html
Kernel modules — The Linux Kernel documentation
A complete example of compiling and loading/unloading a kernel module is presented below: faust:~/lab-01/modul-lin# ls Kbuild Makefile modul.c faust:~/lab-01/modul-lin# make make -C /lib/modules/`uname -r`/build M=`pwd` make[1]: Entering directory `/usr/src/linux-2.6.28.4' LD /root/lab-01/modul-lin/built-in.o CC [M] /root/lab-01/modul-lin/modul.o Building modules, stage 2.
Find elsewhere
🌐
GitHub
github.com › muratdemirtas › Linux-Kernel-Examples
GitHub - muratdemirtas/Linux-Kernel-Examples: Example Linux Kernel Modules Source Code
Example Linux Kernel Modules Source Code . Contribute to muratdemirtas/Linux-Kernel-Examples development by creating an account on GitHub.
Starred by 13 users
Forked by 7 users
Languages   C 100.0% | C 100.0%
🌐
GitHub
github.com › maK- › SimplestLKM
GitHub - maK-/SimplestLKM: Hello World Linux Kernel Module
"Hello World" Linux Kernel Module · Read simple output example messages in /var/log/messages · to install... make · insmod hello.ko · tail -n 1 /var/log/messages · rmmod hello ·
Starred by 9 users
Forked by 8 users
Languages   Shell 56.5% | C 43.5% | Shell 56.5% | C 43.5%
🌐
GitHub
github.com › Joel-Marc › linuxkernelmodules
GitHub - Joel-Marc/linuxkernelmodules: Implementing and using Linux Kernel Modules · GitHub
The jiffies variable is declared in the file <linux/jiffies.h>. Print out the values of jiffies and HZ in the simple init() function. Print out the value of jiffies in the simple exit() function. The second part of this project involves modifying the kernel module so that it uses the kernel linked-list data structure.
Author   Joel-Marc
🌐
GitHub
github.com › topics › kernel-modules
kernel-modules · GitHub Topics · GitHub
The kernel module management operator builds, signs and loads kernel modules in Kubernetes clusters. ... CodeLinaro based kernel for sm8350 devices. ... linux learning kernel kernel-module linux-kernel learn-to-code operating-system linux-drivers ...
🌐
GitHub
github.com › soarpenguin › kernel-module
GitHub - soarpenguin/kernel-module: study linux kernel module development.
study kernel module development. useful address http://www.cs.fsu.edu/~baker/devices/lxr/http/source/ kernel module document http://www.kernel.org/doc/Documentation/ http://stuff.mit.edu/afs/sipb/contrib/linux/tools/ http://jvns.ca/blog/201...
Starred by 11 users
Forked by 5 users
Languages   C 97.9% | E 1.8% | Makefile 0.3% | C 97.9% | E 1.8% | Makefile 0.3%
🌐
GitHub
gist.github.com › sgouda0412 › 80751e211a79e70a7bdef5f2e0416fda
The Linux Kernel Module Programaming Guide.md · GitHub
Most individuals beginning their programming journey typically start with some variant of a hello world example. It is unclear what the outcomes are for those who deviate from this tradition, but it seems prudent to adhere to it. The learning process will begin with a series of hello world programs that illustrate various fundamental aspects of writing a kernel module. Presented next is the simplest possible module. ... /* * hello-1.c - The simplest kernel module. */ #include <linux/module.h> /* Needed by all modules */ #include <linux/printk.h> /* Needed for pr_info() */ int init_module(void) { pr_info("Hello world 1.\n"); /* A non 0 return means init_module failed; module can't be loaded.
🌐
GitHub
github.com › ngtkt0909 › linux-kernel-module-template
GitHub - ngtkt0909/linux-kernel-module-template: Template for Linux kernel module
$ git clone --depth=1 https://github.com/raspberrypi/linux $ git clone --depth=1 https://github.com/raspberrypi/tools $ cd linux $ KERNEL=kernel7 $ make ARCH=arm CROSS_COMPILE=../tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- bcm2709_defconfig $ make ARCH=arm CROSS_COMPILE=../tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- zImage modules dtbs
Starred by 9 users
Forked by 3 users
Languages   C 95.6% | Makefile 4.4% | C 95.6% | Makefile 4.4%
🌐
GitHub
github.com › carloscdias › hello-world-linux-module
GitHub - carloscdias/hello-world-linux-module: A simple Linux kernel module to be used as example · GitHub
A simple Linux kernel module to be used as example - carloscdias/hello-world-linux-module
Forked by 3 users
Languages   C 66.0% | Makefile 34.0%
🌐
GitHub
github.com › jvns › kernel-module-fun
GitHub - jvns/kernel-module-fun: Some fun things you can do with kernel modules (all "bad ideas")
I didn't know at all how kernel modules worked. This is me learning how. This is all tested using the 3.5.0-18 kernel. ... hello-packet.c: logs every time your computer receives a packet. This one could easily be modified to drop packets 50% of the time. rootkit.c: A simple rootkit. blog post explaining it more · I'm running Linux 3.5.0-18.
Starred by 440 users
Forked by 112 users
Languages   C 97.8% | Makefile 2.2% | C 97.8% | Makefile 2.2%
🌐
GitHub
github.com › tleonhardt › linux_lkm
GitHub - tleonhardt/linux_lkm: Linux kernel programming using loadable kernel modules (LKMs) · GitHub
This repository contains a basic introduction to Linux kernel programming. It focuses on using an embedded device such as a Raspberry Pi, but a Linux VM can also be used. A few simple example Loadable Kernel Modules (LKMs) are presented for learning purposes.
Starred by 14 users
Forked by 4 users
Languages   C 90.3% | Makefile 9.7%