diff --git a/04-KernelModule/README.md b/04-KernelModule/README.md new file mode 100644 index 0000000..fab2c1d --- /dev/null +++ b/04-KernelModule/README.md @@ -0,0 +1,21 @@ +# Homework: + +Create a simple Kernel module: + +1. Create a simple module (source and makefile). +2. Add some debug prints. +3. Check your source with the checkpatch.pl +4. Add module parameter and implement different module_init return codes dependent on this parameter (OK/Error). +5. Get kernel logs for both cases. And add them to projects. + +Example of log: +``` +$ sudo dmesg -c +... +< start log > +$ sudo insmod mymodule.ko +$ sudo lsmod | grep mymodule +$ sudo rmmod mymodule +$ sudo dmesg +< end log > +```