Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 897 Bytes

File metadata and controls

62 lines (38 loc) · 897 Bytes

hello-driver

A simple Linux kernel module that demonstrates loading and unloading a basic module.

Features

  • Load: Displays a message when the module is loaded (dmesg).
  • Unload: Displays a message when the module is unloaded (dmesg).

How to Use

  1. Clone the Repository:

    git clone https://github.com/yourusername/hello-driver.git
    cd hello-driver
  2. Build the Module:

    make
  3. Insert the Module:

    sudo insmod hello.ko
  4. Check Logs (verify the message):

    dmesg | tail
  5. Remove the Module:

    sudo rmmod hello
  6. Check Logs Again:

    dmesg | tail

Cleanup

To remove the built files and clean the module build environment:

make clean

License

This project is licensed under the GPL-2.0 License.