|
发表于 2005-5-5 03:40:59
|
显示全部楼层
Post by txkss
If you need the libc function syslog(), (that talks to syslogd(8)),
then look at syslog(3). The system call of this name is about control-
ling the kernel printk() buffer, and the glibc version is called
klogctl().
我看了man 找到上面那个说明
我想它能够接收谁的信息看意思是在内核中定义的吧?
其中printk()是不是一个内核的函数啊?
兄弟们帮我想想办法
不好意思,再看了man一下,不止7种了。但还是不是随便增减的。facility是系统中subsystems决定的,不认为可以在内核中增加。不清楚printk()函数,但从上面的意思看,syslog()调用是用来调控printk() buffer, 我想就是控制那些信息去哪里的意思吧。 |
|