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