Fedora-ARM
全部博文(241)
分类: LINUX
2007-10-20 15:47:42
yixilee2008-11-14 10:06:51
关于楼主描述的: 最关键的“syslog(8,NULL,level)”语句我不理解,没有找到相关资料。但是通过在ARM9板上的实验表明:程序是ok的!我用Hello world模块做了实验,现象和书上的一致。 我查阅了一下,应该这么理解: 原型是:int syslog(int type, char *bufp, int len); 根据type来采取对内核ring buffer的操作,并设置consele_loglevel的值为len。 type参数有以下几种值: /* * Commands to sys_syslog: * * 0 -- Close the log. Currently a NOP. * 1 -- Open the log. Currently a NOP. * 2 -- Read from the log. * 3 -- Read up to the last 4k of messages i
chinaunix网友2008-09-22 21:08:40
我是刚接触linux的。今天看到你的总接非常高兴,做的太详细了。。。 我想问一下,是否可以讲解一下container_of是怎么用的。。 谢谢!
guohua2192008-09-19 12:06:44
[root@(none) scullc]# insmod scullc.ko Using scullc.ko nfs: server 222.31.45.9 not responding, still trying nfs: server 222.31.45.9 not responding, still trying nfs: server 222.31.45.9 not responding, still trying 我按照傅大哥写的模块,一装载的时候就出错了........ 里面的网络没问题,就是装载了模块后出问题的........ 傅大哥知道怎么回事吗???????