scull驱动不能使用的问题。在县等
如下问题:http://linux.chinaunix.net/bbs/thread-1175008-1-1.html 程序本身没有问题,问题在于程序太乱,以下我测试结果
insmod scull.ko
hello, scull
The process is "insmod" (pid 83)
scull, alloc_dev() start
scull, register_dev() start
cat /proc/device
251 scull
简单的把那个scull_fops.c包进来。。。。。 建议好好学学c的编程规范:sleepy: makefile中这一行要去掉
scull-objs := scull_fops.o
这一行要去掉 原因可能在于这里不是应用程序,你试试行不行。
页:
[1]