CS 401/CS 746
(Linux) Kernel Programming
Spring 2016
Exercise #2 The aim of this exercise is to get familiar with writing loadable kernel modules.
references
- Linux Loadable Kernel Module HOWTO (tldp)
- The Linux Kernel Module Programming Guide (tldp)
- Kernel modules (archlinux)
- LKMs++
- Write a sample loadable kernel module and verify that it works---can be loaded and removed.
- Print output from the module to syslogd.
- Print output from the module to the console.
- Extend the basic module to accept command line parameters. Add a simple conditional clause to do perform different tasks (e.g., print different outputs) based on input parameters.
Submit a step-by-step ordered process in which the above is achieved.
A in-class demo is required.