linux driver development codecamp
to compile the module simply issue the following command on the console:
makeif you want to clean up, then use
make cleaninsert the module via the command as root user:
insmod ldd.kolsmod | grep lddif we don't see the ldd driver listed something has gone wrong
echo "msg" > /proc/ldd_drivercat /proc/ldd_driverdmesgwe should see all the output generated by printk() by our driver
rmmod lddnote that we don't need to use the .ko file extension here and that only root can do
this
the code is based mostly on this codecamp video