A Linux kernel module, written in Carp. It’s mostly instructional.
You’ll have to have the Linux kernel headers installed and in your
path. You should be able to install them for you system using your
system package manager of choice (search for linux-headers).
Once you do, you should be able to call the following commands:
# building the executable
carp -b ko.carp
# installing and deleting the module
sudo insmod ./carp.ko
sudo rmmod carp
# looking for the init and exit messages
dmesg | grep 'carp'
Have fun!