Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 680 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 680 Bytes

Hello world

This is a simple code source of kernel module "Hello world".

Get and build the software

Download the source code

$ cd $HOME
$ mkdir devel
$ cd devel
$ git clone https://github.com/ichergui/hello-world.git

Build

It will be possible to use the Makefile.

$ cd $HOME/devel/hello-world
$ make all

Test

Insert it into the Linux kernel

$ sudo insmod hello_world.ko
  • verification
$ lsmod | grep -i "hello"
hello_world            16384  0

Try with the command line dmesg to see what's happened.

$ dmesg | tail

Remove it from Linux kernel

$ sudo rmmod hello_world