'\" t .\" Title: device_destroy .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVICE_DESTROY" "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" device_destroy \- removes a device that was created with \fBdevice_create\fR .SH "SYNOPSIS" .HP \w'void\ device_destroy('u .BI "void device_destroy(struct\ class\ *\ " "class" ", dev_t\ " "devt" ");" .SH "ARGUMENTS" .PP \fIclass\fR .RS 4 pointer to the struct class that this device was registered with .RE .PP \fIdevt\fR .RS 4 the dev_t of the device that was previously registered .RE .SH "DESCRIPTION" .PP This call unregisters and cleans up a device that was created with a call to \fBdevice_create\fR\&. .SH "COPYRIGHT" .br