Skip to content

csmart/hellolinuxworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Sample Linux kernel module that prints hello world.

Compile

Install dev tools and kernel-devel:

sudo dnf install kernel-devel make gcc

Now you can compiled the module:

cd src
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules

Remove the module and build files with:

make clean

Load module

sudo insmod ./hello.ko

Unload module

sudo rmmod hello

Check output

dmesg

About

How to write a small kernel module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published