Date: Mon, 30 Jul 2001 11:50:18 -0700 (PDT) From: Hans Zaunere <zaunere@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Accessing /dev/klog and similar Message-ID: <20010730185018.10922.qmail@web12807.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hello, I'm looking to access kernel messages directly from the kernel, and not through syslog if I can help it. When I try to open("/dev/klog", O_RDONLY); I get the error "Device busy". How can I open this file? Or are there any other ways of getting at this data? When I try to open /dev/log or /var/run/log I get the error "Operation not supported." Basically what I want to do is "intercept" kernel messages before they get to syslog, avoiding having to open the disk file that syslog writes to. Any ideas or help on how to do this would be great. Thank you, Hans zaunere@yahoo.com __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010730185018.10922.qmail>