Load the example.ko
kernel module from memory - without using insmod
.
To use:
make
sudo ./load
dmesg
lsmod | grep example
rmmod example
dmesg
NOTE: If you aren't running kernel
5.4.0-33-generic
(Ubuntu 20.04 currently), then you will need to recompileexample.ko
, and replace theexample_ko
andexample_ko_len
lines with the output ofxxd -i example.ko
.