From e62470949bdba54b7549e69cad97f38eb820a0e5 Mon Sep 17 00:00:00 2001 From: Andriy Khulap Date: Wed, 24 Oct 2018 16:09:58 +0300 Subject: [PATCH] 04-KernelModule: Add homework task Signed-off-by: Andriy Khulap --- 04-KernelModule/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 04-KernelModule/README.md 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 > +```