I have a hard time trying to figure out why you would want to write a kernel module for all >of this. There are userland tools that can do just about everything you describe.
I know that there are many tools. This C program is developed with special task. Can you help me?
Regards Peter