将主设备号和次设备号转换成dev_t类型 #define MKDEV(major,minor) (((major) << MINORBITS) | (minor)) major为主设备号 minor为次设备号 成功执行返回dev_t类型的设备编号