函数名称:__register_chrdev() - create and register a cdev occupying a range of minors*@major: major device number or 0 for dynamic allocation*@baseminor: first of the requested range of minor numbers*@count: the number of minor numbers required*@name: name of this
函数原型:int __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|
unsigned int | major | |
unsigned int | baseminor | |
unsigned int | count | |
const char * | name | |
const struct file_operations * | fops | |