'\" t .\" Title: input_get_new_minor .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "INPUT_GET_NEW_MINOR" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Input Subsystem" .\" ----------------------------------------------------------------- .\" * 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" input_get_new_minor \- allocates a new input minor number .SH "SYNOPSIS" .HP \w'int\ input_get_new_minor('u .BI "int input_get_new_minor(int\ " "legacy_base" ", unsigned\ int\ " "legacy_num" ", bool\ " "allow_dynamic" ");" .SH "ARGUMENTS" .PP \fIlegacy_base\fR .RS 4 beginning or the legacy range to be searched .RE .PP \fIlegacy_num\fR .RS 4 size of legacy range .RE .PP \fIallow_dynamic\fR .RS 4 whether we can also take ID from the dynamic range .RE .SH "DESCRIPTION" .PP This function allocates a new device minor for from input major namespace\&. Caller can request legacy minor by specifying \fIlegacy_base\fR and \fIlegacy_num\fR parameters and whether ID can be allocated from dynamic range if there are no free IDs in legacy range\&. .SH "COPYRIGHT" .br