register_chrdev函数会占用0~255的次设备号范围. 因此,太浪费资源,需要将其展开. 展开后涉及的函数有: register_chrdev_region,alloc_chrdev_region,MKDEV(),MAJOR(),MINOR(),cdev_init(),cdev_add() 详解 #http://blog.csdn.net/angle_birds/article/details/7822416