Unloading the demokext kernel extension

This topic describes unloading the demokext kernel extension.

To unload the demokext kernel extension:

  1. At the $ prompt, bring the demonstration program to the foreground by typing fg on the command line. At this point, the prompt changes to ./demo.
  2. Enter 0 to unload and exit, 1 to increment counters, or 2 to decrement counters. The prompt is not displayed again because it was shown prior to stopping the program and placing it in the background. For the purposes of this example, enter 0 to indicate that the kernel extension is to be unloaded and that the demonstration program is to terminate.