From owner-freebsd-hackers Sun Jul 5 14:46:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14028 for freebsd-hackers-outgoing; Sun, 5 Jul 1998 14:46:47 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from IAEhv.nl (root@iaehv.IAEhv.nl [194.151.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14009 for ; Sun, 5 Jul 1998 14:46:31 -0700 (PDT) (envelope-from wjw@surf.IAE.nl) Received: from surf.IAE.nl (root@surf.IAEhv.nl [194.151.66.2]) by IAEhv.nl (8.8.7/8.8.7) with ESMTP id XAA08382; Sun, 5 Jul 1998 23:46:26 +0200 (CEST) Received: (from wjw@localhost) by surf.IAE.nl (8.8.7/8.8.7) id XAA23454; Sun, 5 Jul 1998 23:46:26 +0200 (MET DST) Date: Sun, 5 Jul 1998 23:46:26 +0200 (MET DST) From: Willem Jan Withagen Message-Id: <199807052146.XAA23454@surf.IAE.nl> To: tlambert@primenet.com Subject: Re: adding to sysctl env. X-Newsgroups: list.freebsd.hackers In-Reply-To: <199807051913.MAA27026@usr08.primenet.com> References: <199807042215.AAA00277@hobby.digiware.nl> Organization: Internet Access Eindhoven, the Netherlands Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199807051913.MAA27026@usr08.primenet.com> you write: >> 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. :-{ > >You are using "options DEBUG", right? > >Also: you are staticaly linking this driver, not loading it as an LKM, >right? Problem was even simpler: sys/sysctl.h require to include sys/kernel.h Which I didn't, so I've started to donate a first attempt man page. --WjW -- Internet Access Eindhoven BV., voice: +31-40-2 393 393, data: +31-40-2 606 606 P.O. 928, 5600 AX Eindhoven, The Netherlands Full Internet connectivity for only fl 12.95 a month. Call now, and login as 'new'. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message