Operating Systems 2015F: Tutorial 8: Difference between revisions

From Soma-notes
Created page with "In this tutorial you should mainly be working on your project. If you are having problems, ask for help! If you are looking for functionality to play with, try looking at ca..."
 
No edit summary
 
Line 2: Line 2:


If you are looking for functionality to play with, try looking at call_usermodehelper() and related functions defined in kernel/kmod.c.  There is a nice, but old article about this API [http://www.ibm.com/developerworks/library/l-user-space-apps/ at IBM].
If you are looking for functionality to play with, try looking at call_usermodehelper() and related functions defined in kernel/kmod.c.  There is a nice, but old article about this API [http://www.ibm.com/developerworks/library/l-user-space-apps/ at IBM].
You may also want to check out kprobes, documented in Documentation/kprobes.txt, if you wish to modify kernel functionality without modifying the source.  In most cases, though, it will be easier to just modify the source directly.  (While you don't have to reboot to use kprobes, in practice issues with unloading and loading modules will mean you'll still have to reboot a lot when developing anything using kprobes.)

Latest revision as of 21:12, 13 November 2015

In this tutorial you should mainly be working on your project. If you are having problems, ask for help!

If you are looking for functionality to play with, try looking at call_usermodehelper() and related functions defined in kernel/kmod.c. There is a nice, but old article about this API at IBM.

You may also want to check out kprobes, documented in Documentation/kprobes.txt, if you wish to modify kernel functionality without modifying the source. In most cases, though, it will be easier to just modify the source directly. (While you don't have to reboot to use kprobes, in practice issues with unloading and loading modules will mean you'll still have to reboot a lot when developing anything using kprobes.)