Scroll to navigation

REGISTER_CHRDEV_REGI(9) Char devices REGISTER_CHRDEV_REGI(9)

NAME

register_chrdev_region - register a range of device numbers

SYNOPSIS

int register_chrdev_region(dev_t from, unsigned count, const char * name);

ARGUMENTS

dev_t from
the first in the desired range of device numbers; must include the major number.

unsigned count

the number of consecutive device numbers required

const char * name

the name of the device or driver.

DESCRIPTION

Return value is zero on success, a negative error code on failure.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.11