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 Tasks
  1. Write a sample loadable kernel module and verify that it works---can be loaded and removed.
  2. Print output from the module to syslogd.
  3. Print output from the module to the console.
  4. 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.
Due date: 13th January 2016, Wednesday (in class)
Submit a step-by-step ordered process in which the above is achieved.
A in-class demo is required.