<div dir="ltr"><div dir="ltr">On Fri, Oct 25, 2019 at 2:16 AM Irfan Ullah (울라 이르판) <<a href="mailto:irfan@dke.khu.ac.kr">irfan@dke.khu.ac.kr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear All,<div>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.</div><div>I tried many things , e.g.,  <a href="https://paguilar.org/?p=7" target="_blank">link</a>1, <a href="https://www.linuxquestions.org/questions/linux-kernel-70/kernel-module-with-multiple-source-files-not-initializing-886190/" target="_blank">link2</a>, and <a href="https://android.googlesource.com/kernel/msm/+/android-msm-dory-3.10-kitkat-wear/Documentation/kbuild/modules.txt" target="_blank">link3</a> etc.  but nothings worked out. </div><div>I also used <i>nm</i> to inspect the module, but, as expected, there was no signs of "__init and __exit" functions can in the output. </div></div></blockquote><div><br></div><div>I assume you have verified that your module is loaded by something like</div><div><br></div><div>lsmod | grep your_module_name</div><div><br></div><div>and log level allows KERN_ALERT printing.</div></div></div>