1MODULE_EXIT(9) Driver Basics MODULE_EXIT(9)
23
4
NAME
6module_exit - driver exit entry point
7
SYNOPSIS
9module_exit(x);
10
ARGUMENTS
12x
13function to be run when driver is removed
14
DESCRIPTION
16module_exit will wrap the driver clean-up code with cleanup_module when
17used with rmmod when the driver is a module. If the driver is
18statically compiled into the kernel, module_exit has no effect. There
19can only be one per module.
20
COPYRIGHT
22Kernel Hackers Manual 2.6. November 2011 MODULE_EXIT(9)