Skip to content

altspice/Hello-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages