www.pudn.com > driverII_demo.rar > readme
It is very simple.hehe. You just type: insmod scull.ko ./scull_user Early,i want to modified deeply, but i think we just can learn linux-2.6.x interface, that is all. If you want to run the programming, you must recompile the linux 2.6.x kernel, add devfs support, mount devfs and sysfs. The result is : 1. [caolingzi@localhost caolingzi]$ cat /proc/version Linux version 2.6.10 (root@localhost.localdomain) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #6 Sat Feb 19 11:58:16 CST 2005 2. [caolingzi@localhost caolingzi]$ ls /sys/module/scull/ refcnt sections 3. [caolingzi@localhost caolingzi]$ ls /devfs/scull/ 0 4. [caolingzi@localhost caolingzi]$ cat /proc/devices ... 180 usb 253 scull 254 devfs ... 5. [root@localhost scull_user]# ./scull_user Hello, Kernel-2.6.10_scull! ok, good lucky! zhengjie caolingzi@netease.com 2005.2.21