'\" t .\" Title: builtin_driver .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "BUILTIN_DRIVER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" builtin_driver \- Helper macro for drivers that don\*(Aqt 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 \fBmodule_driver\fR above but without the __exit stuff that is not used for builtin cases\&. .SH "SYNOPSIS" .HP \w'builtin_driver('u .BI "builtin_driver(" "__driver" ", " "__register" ", " "\&.\&.\&." ");" .SH "ARGUMENTS" .PP \fI__driver\fR .RS 4 driver name .RE .PP \fI__register\fR .RS 4 register function for this driver type @\&.\&.\&.: Additional arguments to be passed to __register .RE .PP \fI\&.\&.\&.\fR .RS 4 variable arguments .RE .SH "DESCRIPTION" .PP Use this macro to construct bus specific macros for registering drivers, and do not use it on its own\&. .SH "COPYRIGHT" .br