Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Aug 1998 19:03:58 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Jacques Vidrine <n@nectar.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: sysctl example 
Message-ID:  <199808020203.TAA05424@antipodes.cdrom.com>
In-Reply-To: Your message of "Sat, 01 Aug 1998 20:13:10 CDT." <E0z2mhy-0000xx-00@spawn.nectar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Hi Folks,
> 
> I'm looking for a good example of implementing a sysctl in
> the kernel that returns a table or list of structs. 
> 
> If there's an elegant way to set such things, I'd like to
> here about it, also.
> 
> Thanks in advance!

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?199808020203.TAA05424>