This is a simple code source of kernel module "Hello world".
$ cd $HOME
$ mkdir devel
$ cd devel
$ git clone https://github.com/ichergui/hello-world.git
It will be possible to use the Makefile.
$ cd $HOME/devel/hello-world
$ make all
$ 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
$ sudo rmmod hello_world