Todo app as Linux kernel module!
Warning
Since this is my first Linux kernel module, don't load the kernel module in your main operating system. Compile and load the module inside a Linux VM.
Build the module with GNU make:
make
Basic operations and instructions:
sudo insmod todo.ko
cat /proc/todo
echo -n 'A: Read a new book' > /proc/todo
echo -n 'D: Read a new book' > /proc/todo
sudo rmmod todo
When you write to /proc/todo
, the module parses your input. The first character MUST be an uppercase english ascii character.
At this point only A
for add and D
for delete are supported. The general syntax:
command := CMD_CHAR: TASK
A command contains a single uppercase character which specifies the operation, a colon right after command character and the rest is the task itself.