'\" t
.\"     Title: __unregister_chrdev
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: March 2017
.\"    Manual: Char devices
.\"    Source: Kernel Hackers Manual 4.10.7
.\"  Language: English
.\"
.TH "__UNREGISTER_CHRDEV" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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"
__unregister_chrdev \- unregister and destroy a cdev
.SH "SYNOPSIS"
.HP \w'void\ __unregister_chrdev('u
.BI "void __unregister_chrdev(unsigned\ int\ " "major" ", unsigned\ int\ " "baseminor" ", unsigned\ int\ " "count" ", const\ char\ *\ " "name" ");"
.SH "ARGUMENTS"
.PP
\fImajor\fR
.RS 4
major device number
.RE
.PP
\fIbaseminor\fR
.RS 4
first of the range of minor numbers
.RE
.PP
\fIcount\fR
.RS 4
the number of minor numbers this cdev is occupying
.RE
.PP
\fIname\fR
.RS 4
name of this range of devices
.RE
.SH "DESCRIPTION"
.PP
Unregister and destroy the cdev occupying the region described by
\fImajor\fR,
\fIbaseminor\fR
and
\fIcount\fR\&. This function undoes what
\fB__register_chrdev\fR
did\&.
.SH "COPYRIGHT"
.br
