---
name: "module_exit"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/module_exit"
---

# module\_exit(9)

driver exit entry point

## NAME

module\_exit - driver exit entry point

## SYNOPSIS

**module\_exit(***x***);**

## ARGUMENTS

*x*

function to be run when driver is removed

## DESCRIPTION

**module\_exit** will wrap the driver clean-up code with **cleanup\_module** when used with rmmod when the driver is a module. If the driver is statically compiled into the kernel, **module\_exit** has no effect. There can only be one per module.

## COPYRIGHT
