Load the example.ko
kernel module from memory - without using insmod
.
To use:
make
sudo ./load
dmesg
lsmod | grep example
rmmod example
dmesg
NOTE: This assumes that
example.ko
is in the current directory. If your LKM is named something else, change the first line in theMakefile
.