- int alloc_chrdev_region(dev_t * dev, unsigned baseminor, unsigned count, const char * name);
- output parameter for first assigned number
- first of the requested range of minor numbers
- the number of minor numbers required
- the name of the associated device or driver
Allocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) in dev. Returns zero or a negative error code.