OpenBSD manual page server

Manual Page Search Parameters

MODUNLOAD(8) System Manager's Manual MODUNLOAD(8)

modunloadunload a kernel module

modunload [-i id] [-n name] [-p postunload]

The modunload utility unloads a loadable kernel module from a running system. The id or name is the ID or name of the module as shown by modstat(8).

One of the following options must be specified:

Unload the module with the ID id.
Unload the module with the name name.
Specify the name of a shell script or program that will be executed if the module is successfully unloaded. This program is passed no arguments.

The modunload utility exits 0 on success or with a non-zero status if an error occurred.

lkm(4), securelevel(7), modload(8), modstat(8)

The modunload command was designed to be similar in functionality to the corresponding command in SunOS 4.1.3.

Terrence R. Lambert

September 3, 2010 OpenBSD-5.1