Dear All,
I have developed a kernel module consists of one source file that sends and receives message to the user space. I have spitted the source code in two files, and now I am trying to develop kernel module from these source files. After compiling and linking without any problems, I insmod the module but I didn’t see any of the printk() I wrote, in fact, the module can be inserted and removed, but it does nothing. Code is in the attached file zipped file.
I tried many things , e.g.,
link1,
link2, and
link3 etc. but nothings worked out.
I also used nm to inspect the module, but, as expected, there was no signs of "__init and __exit" functions can in the output.