Date: Sun, 05 Jul 1998 09:42:56 -0700 From: Mike Smith <mike@smith.net.au> To: Willem Jan Withagen <wjw@hobby.digiware.nl> Cc: hackers@FreeBSD.ORG Subject: Re: adding to sysctl env. Message-ID: <199807051642.JAA05317@antipodes.cdrom.com> In-Reply-To: Your message of "Sun, 05 Jul 1998 00:15:22 %2B0200." <199807042215.AAA00277@hobby.digiware.nl>
index | next in thread | previous in thread | raw e-mail
> Hi,
>
> I'm trying to add things to the sysctl environment, and I thought to take
> a simple step first:
> make a debug.switch for the vlink module.
> So I added:
> ----
> /*
> * For the vlink module debugging
> */
> static int vlinkxlatedebug = 0;
> SYSCTL_INT(_debug, OID_AUTO, vlinkxlate, CTLFLAG_RW, &vlinkxlatedebug, 0,
> "");
> ----
> expecting to see it apear in my sysctl -a output.
>
> But guess what: I didn't. :-{
It should have. Make sure that the source file is actually being built
as part of the kernel. You could be more paranoid and remove the
'static', then try
# nm /kernel | grep vlinkxlate
in order to make sure that the symbol is present in the running kernel.
--
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ mike@smith.net.au
\\ The race is long, and in the \\ msmith@freebsd.org
\\ end it's only with yourself. \\ msmith@cdrom.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807051642.JAA05317>
