1ALLOC_CHRDEV_REGION(9)           Char devices           ALLOC_CHRDEV_REGION(9)
2
3
4

NAME

6       alloc_chrdev_region - register a range of char device numbers
7

SYNOPSIS

9       int alloc_chrdev_region(dev_t * dev, unsigned baseminor,
10                               unsigned count, const char * name);
11

ARGUMENTS

13       dev
14           output parameter for first assigned number
15
16       baseminor
17           first of the requested range of minor numbers
18
19       count
20           the number of minor numbers required
21
22       name
23           the name of the associated device or driver
24

DESCRIPTION

26       Allocates a range of char device numbers. The major number will be
27       chosen dynamically, and returned (along with the first minor number) in
28       dev. Returns zero or a negative error code.
29
31Kernel Hackers Manual 3.10         June 2019            ALLOC_CHRDEV_REGION(9)
Impressum