A simple Linux kernel module that demonstrates loading and unloading a basic module.
- Load: Displays a message when the module is loaded (
dmesg). - Unload: Displays a message when the module is unloaded (
dmesg).
-
Clone the Repository:
git clone https://github.com/yourusername/hello-driver.git cd hello-driver -
Build the Module:
make
-
Insert the Module:
sudo insmod hello.ko
-
Check Logs (verify the message):
dmesg | tail -
Remove the Module:
sudo rmmod hello
-
Check Logs Again:
dmesg | tail
To remove the built files and clean the module build environment:
make cleanThis project is licensed under the GPL-2.0 License.