---
name: "module_driver"
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_driver"
---

# module\_driver(9)

Helper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module\_init and module\_exit.

## NAME

module\_driver - Helper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces **module\_init** and **module\_exit**.

## SYNOPSIS

**module\_driver(***\_\_driver***,** *\_\_register***,** *\_\_unregister***,** *...***);**

## ARGUMENTS

*\_\_driver*

driver name

*\_\_register*

register function for this driver type

*\_\_unregister*

unregister function for this driver type @...: Additional arguments to be passed to \_\_register and \_\_unregister.

*...*

variable arguments

## DESCRIPTION

Use this macro to construct bus specific macros for registering drivers, and do not use it on its own.

## COPYRIGHT
