From owner-freebsd-hackers Sat Aug 1 19:33:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA20453 for freebsd-hackers-outgoing; Sat, 1 Aug 1998 19:33:37 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles250.castles.com [208.214.165.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA20445 for ; Sat, 1 Aug 1998 19:33:35 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id TAA05554; Sat, 1 Aug 1998 19:32:39 -0700 (PDT) Message-Id: <199808020232.TAA05554@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Jacques Vidrine cc: Mike Smith , hackers@FreeBSD.ORG Subject: Re: sysctl example In-reply-to: Your message of "Sat, 01 Aug 1998 21:10:25 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 01 Aug 1998 19:32:39 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It's a TAILQ, and returning the whole enchilada is what I want. > Although it might be useful to grab one at a time someday. > > I'll look at the SYSCTL_NODE stuff, thanks! That's really only necessary if you need to return parts of the object. Perhaps consider SYSCTL_STRING or SYSCTL_OPAQUE instead. See sys/sys/sysctl.h for more ideas. > Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org > > On 1 August 1998 at 19:03, Mike Smith wrote: > > Is your table statically-sized, or does it vary in size at runtime? Do > > you want to return just the entire table, or optionally just one entry? > > > > Look for SYSCTL_NODE() declarations eg. in the networking code. -- \\ 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