摘要: 本文代码参考《LINUX设备驱动程序》第三章 字符设备驱动程序本文中的“字符设备”是一段大小为PAGE_SIZE的内存空间功能:向字符设备写入字符串;从字符设备读出字符串代码:1. scull.c 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 #include "scull.h" 11 12 int scull_major = SCULL_MAJOR; 13 int scull_minor = 0; 14 15 mo... 阅读全文
posted @ 2013-11-23 21:37 tanghuimin0713 阅读(1457) 评论(0) 推荐(1) 编辑