据我了解,的签名register_chrdev_region
描述如下
extern int register_chrdev_region(dev_t firstmajor,unsigned int count,const char*dev_name);
//firstmajor: The major number requested for reservation of the dirver
//dev_name: Name of the device associated with the major number(for procfs and sysfs)
//count: Total number of contagious device numbes that is requested??
我没有count
在函数中使用争论(alloc_chrdev_region
同样)。请解释一个为驱动程序保留传染设备号的简单用例