This repository is a collection of examples that demonstrate kernel panic, OOPs, BUG usages, and conditional compiling process in Linux kernel modules. Each subdirectory holds a different example, and they are easy to understand and implement.
- Navigate to the specific folder you are interested in.
- Read the
readme.md
file in the folder for an overview and specifics about the example. - Use the provided
Makefile
to compile and build the kernel module usingmake
. - Load and unload the kernel module using
insmod
andrmmod
.
This repository is licensed under the terms of the GPL License.
Feel free to contribute to this project by creating issues or pull requests. We appreciate your feedback and contributions!
- Please ensure you have the necessary permissions and environment to load and unload kernel modules.
- Always follow best practices while writing kernel modules to avoid system crashes and data corruption.
Happy Learning & Coding! 🚀