运行了一下《linux设备驱动程序》第三章的那个scull例子,发现出现如下错误提示: error: linux/config.h: No such file or directory 我的系统内核版本是2.6.35的,config.h这个头文件貌似在2.6.19的内核版本后就没有了,搜了搜网上的文章,有些人说打过patch的没问题,这是肯定的,如果不打patch,就只有改代码了,又有人说只要在access.c中添加 #include <linux/sched.h>和#include <linux/capability.h>就能通过编译,不过,出现了如下错误: error: "struct task_struct" has no member named "uid" error: "struct task_struct" has no member named "euid"本文相配套的《Linux设备驱动程序》下载在http://www.linuxidc.net/thread-2029-1-1.html