Scroll to navigation

BUILTIN_DRIVER(9) Device drivers infrastructure BUILTIN_DRIVER(9)

NAME

builtin_driver - Helper macro for drivers that don't do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver above but without the __exit stuff that is not used for builtin cases.

SYNOPSIS

builtin_driver(__driver, __register, ...);

ARGUMENTS

__driver

driver name

__register

register function for this driver type @...: Additional arguments to be passed to __register

...

variable arguments

DESCRIPTION

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

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.