Date: Sat, 01 Aug 1998 19:32:39 -0700 From: Mike Smith <mike@smith.net.au> To: Jacques Vidrine <n@nectar.com> Cc: Mike Smith <mike@smith.net.au>, hackers@FreeBSD.ORG Subject: Re: sysctl example Message-ID: <199808020232.TAA05554@antipodes.cdrom.com> In-Reply-To: Your message of "Sat, 01 Aug 1998 21:10:25 CDT." <E0z2nbN-0001Zs-00@spawn.nectar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <mike@smith.net.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808020232.TAA05554>