title: How to trigger a kernel module from shell?
body: <p>I am using Ubuntu with VirtualBox.
  I am defining a new command to my shell to output some characteristics(like sibling tree etc.) of child processes. In order to output these characteristics, I created a kernel module and used task_struct. I also tested my kernel module outside of my shell and it works.
  Now my problem is how to trigger this kernel module inside my shell(in C code) so that my kernel module will be loaded?</p>
  <p>I searched and find that I need to use system calls like modprobe or insmod but did not understand how to use them. I tried the code below, but it did not work:</p>
  <blockquote>
  <p>setuid(0);</p>
  <p>system(&quot;/sbin/insmod /.../mymodule.ko&quot;);</p>
  </blockquote>
  <p>Thank you for your help.</p>