---
name: "input_get_new_minor"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_get_new_minor"
---

# input\_get\_new\_minor(9)

allocates a new input minor number

## NAME

input\_get\_new\_minor - allocates a new input minor number

## SYNOPSIS

**int input\_get\_new\_minor(int** *legacy\_base***, unsigned int** *legacy\_num***, bool** *allow\_dynamic***);**

## ARGUMENTS

*legacy\_base*

beginning or the legacy range to be searched

*legacy\_num*

size of legacy range

*allow\_dynamic*

whether we can also take ID from the dynamic range

## DESCRIPTION

This function allocates a new device minor for from input major namespace. Caller can request legacy minor by specifying *legacy\_base* and *legacy\_num* parameters and whether ID can be allocated from dynamic range if there are no free IDs in legacy range.

## COPYRIGHT
