'\" t .\" Title: cdev_init .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Char devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CDEV_INIT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Char devices" .\" ----------------------------------------------------------------- .\" * 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" cdev_init \- initialize a cdev structure .SH "SYNOPSIS" .HP \w'void\ cdev_init('u .BI "void cdev_init(struct\ cdev\ *\ " "cdev" ", const\ struct\ file_operations\ *\ " "fops" ");" .SH "ARGUMENTS" .PP \fIcdev\fR .RS 4 the structure to initialize .RE .PP \fIfops\fR .RS 4 the file_operations for this device .RE .SH "DESCRIPTION" .PP Initializes \fIcdev\fR, remembering \fIfops\fR, making it ready to add to the system with \fBcdev_add\fR\&. .SH "COPYRIGHT" .br