Linux Device Driver 3 实验代码修改,
为了让LDD3的示例代码适应新的2.6.32内核,进行了相应的修改
--Andrew Shin
Chp 3 字符设备驱动程序 实验代码
1. 编译出现 “TASK_INTERRUPTIBLE”的问题就包含<linux/sched.h>
2. current->uid不能直接引用,需要改成 current->cred->uid; euid类似
3. Makefile 中的CFLAGS改为:EXTRA_CFLAGS
Linux Device Driver 3 实验代码修改,
为了让LDD3的示例代码适应新的2.6.32内核,进行了相应的修改
--Andrew Shin
Chp 3 字符设备驱动程序 实验代码
1. 编译出现 “TASK_INTERRUPTIBLE”的问题就包含<linux/sched.h>
2. current->uid不能直接引用,需要改成 current->cred->uid; euid类似
3. Makefile 中的CFLAGS改为:EXTRA_CFLAGS