“Hello world” kernel module

Make a directory called “helloM” in your home dir and edit the following .C file, called “hello.c”: /*hello.c – The simplest kernel module.*/ #include <linux/module.h>  /* Needed by all modules */ #include <linux/kernel.h>  /* Needed for KERN_ALERT */ int init_module(void) { printk(“<1>Hello world 1.\n”); // A non 0 return means init_module failed; module can’t be […]