摘要: 请注意, linux的应用层对字符设备都是采取文件读写的方式,所以说我们的驱动程序也是用的是文件的形式。 我们需要把所有的驱动程序封装到文件的读写形式里面。 1、 static int XXX_open(struct inode *inode, struct file *file) //这个函数是挂 阅读全文
posted @ 2020-06-18 05:51 闲云潭影 阅读(221) 评论(0) 推荐(0) 编辑