int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count,const char *name). 若没有分配主设备号时,先分配一个主设备号放到“&dev”中,.
確定! 回上一頁