|
发表于 2003-5-22 22:03:29
|
显示全部楼层
once the /dev/null and /dev/zero is inited, it never been cleanuped. so it never needs cleanup code. but u code need do that.
read scull and that chapter again. it is very clear in book that what value should put there. u also need a small script to create device for u in /dev. as well, find it in book.
u can not tell me u do not understand that book, and u only want to have a char dev driver code. since u are coding a kernel module, u have to know it. why not tell us " do not discuss c language problem with me, i do not want to know that, i only need a chr dev code?"
u have better write a makefile although u gcc is workable.
u need not cp to /lib/mo.../, u can insmod chard.o directly. |
|