From owner-freebsd-current Wed Sep 9 02:06:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA10354 for freebsd-current-outgoing; Wed, 9 Sep 1998 02:06:12 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA10300 for ; Wed, 9 Sep 1998 02:06:03 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id KAA24766 for ; Wed, 9 Sep 1998 10:52:48 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Wed, 9 Sep 1998 10:52:47 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: freebsd-current@FreeBSD.ORG Subject: Adding sysctl. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'd like to add a sysctl which would return the contents of msgbuf. This would be useful for examining its contents on systems running kernels without symbol table, where dmesg refuses to work. How do I go about it? I tried to do it straight away like this (in i386/machdep.c:213): SYSCTL_OPAQUE(_machdep,OID_AUTO,msgbuf,CTLFLAG_RD,msgbufp,MSGBUF_SIZE, \ "S,msgbuf",""); but it doesn't like the msgbufp, because it's not a const. Andrzej Bialecki -------------------- ++-------++ ------------------------------------- ||PicoBSD|| FreeBSD in your pocket? Go and see: Research & Academic |+-------+| "Small & Embedded FreeBSD" Network in Poland | |TT~~~| | http://www.freebsd.org/~picobsd/ -------------------- ~-+==---+-+ ------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message