安装驱动 insmod dev.ko
查看主设备号 cat /proc/devices
创建设备文件 mknod /dev/dev0 c 主设备号 0 c表示字符型设备
使用设备时 fd=open("/dev/dev0",O_RDWR);