Professional Documents
Culture Documents
STEPS:-
2) Create a directory.
mkdir usr/local/src/kernel_example
cd usr/local/src/kernel_example
3)vi and create the file kernel_example.c with the following contents:
$vi kernel_example.c
We call module_init and module_exit to tell the kernel which
We need a Makefile.
$vi Makefile
The resulting file is “anjali_example.ko”.
we can insert the module to test it
$ dmesg