摘要: 恢复内容开始 1:我们之前的设备文件都是使用mknod命令来手动添加的,下面我们要解决一下设备文件的自动添加问题: 设备文件的自动添加需要udev,busybox中的mdev是简化版的udev; https://yq.aliyun.com/articles/10546 http://blog.chi 阅读全文
posted @ 2017-03-26 22:47 biaohc 阅读(7193) 评论(0) 推荐(0) 编辑
摘要: 1:上一章我们使用了register_chrdev这个函数来向内核注册字符设备 static inline int register_chrdev(unsigned int major, const char *name, const struct file_operations *fops) 这个 阅读全文
posted @ 2017-03-26 21:02 biaohc 阅读(1824) 评论(0) 推荐(0) 编辑