input_get_new_minor(9)

input_get_new_minor9

Allocates a new input minor number

Usage

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

Overview

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.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.