Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 1998 10:52:47 +0200 (CEST)
From:      Andrzej Bialecki <abial@nask.pl>
To:        freebsd-current@FreeBSD.ORG
Subject:   Adding sysctl.
Message-ID:  <Pine.BSF.4.02A.9809091048010.22976-100000@korin.warman.org.pl>

next in thread | raw e-mail | index | archive | help
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

--------------------   ++-------++  -------------------------------------
 <abial@nask.pl>       ||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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9809091048010.22976-100000>