title: how would i write a kernel module that runs program b whenever program a is called
body: <p>I'm pretty new to linux, and I have a few questions about kernel module programming. I'm using ubuntu and C to make my .ko files. I'm trying to make a module that will execute program /b instead of /a whenever program /a is called. any tips?</p>
  
  <p>also, even with printk (KERN_EMERG...), it won't print to the terminal. is there a setting i'm missing, or does ubuntu not do that?</p>
  
  <p>Thanks a lot!</p>