From owner-freebsd-hackers Mon Jul 30 11:50:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from web12807.mail.yahoo.com (web12807.mail.yahoo.com [216.136.174.42]) by hub.freebsd.org (Postfix) with SMTP id 7A60A37B401 for ; Mon, 30 Jul 2001 11:50:18 -0700 (PDT) (envelope-from zaunere@yahoo.com) Message-ID: <20010730185018.10922.qmail@web12807.mail.yahoo.com> Received: from [128.122.155.151] by web12807.mail.yahoo.com; Mon, 30 Jul 2001 11:50:18 PDT Date: Mon, 30 Jul 2001 11:50:18 -0700 (PDT) From: Hans Zaunere Subject: Accessing /dev/klog and similar To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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