This repository contains example Linux kernel modules, providing insights into basic structures and functionalities across different kernel versions. It serves as a learning resource for individuals exploring kernel module programming and the nuances of the Linux kernel.
The repository is organized into different folders, each corresponding to a specific Linux version or functionality:
0_Linux_Version/
1_Linux_Version/
2_UTS_release/
3_multiple_versions/
Each folder contains:
hello.c
: The C source file for the kernel module.Makefile
: The file to assist in compiling the kernel module.readme.md
: Instructions and information related to the specific example.
Navigate to any version-specific folder and follow the instructions in the readme.md
file to compile and load the kernel module.
$ cd 0_Linux_Version
$ make
$ sudo insmod hello.ko
This project is licensed under the terms of the included LICENSE
file.
Contributions, issues, and feature requests are welcome! Feel free to check
Please ensure you understand the risks involved with kernel programming, and use a safe environment such as a virtual machine.
- The Linux kernel documentation
- The open-source community for valuable insights and information.
Happy Coding! 🎉