1REGISTER_BLKDEV(9)               Block Devices              REGISTER_BLKDEV(9)
2
3
4

NAME

6       register_blkdev - register a new block device
7

SYNOPSIS

9       int register_blkdev(unsigned int major, const char * name);
10

ARGUMENTS

12       major
13           the requested major device number [1..255]. If major=0, try to
14           allocate any unused major number.
15
16       name
17           the name of the new block device as a zero terminated string
18

DESCRIPTION

20       The name must be unique within the system.
21
22       The return value depends on the major input parameter. - if a major
23       device number was requested in range [1..255] then the function returns
24       zero on success, or a negative error code - if any unused major number
25       was requested with major=0 parameter then the return value is the
26       allocated major number in range [1..255] or a negative error code
27       otherwise
28
30Kernel Hackers Manual 3.10         June 2019                REGISTER_BLKDEV(9)
Impressum