Date: Thu, 11 Oct 2007 12:43:27 +0100 From: Matthew Jakeman <m.jakeman@lancaster.ac.uk> To: freebsd-hackers@freebsd.org Subject: Re: Sysctl Naming Message-ID: <200710111243.27149.m.jakeman@lancaster.ac.uk> In-Reply-To: <200710111156.38525.m.jakeman@lancaster.ac.uk> References: <200710111156.38525.m.jakeman@lancaster.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Please ignore this, stupid question as I have now realised. Cheers Matt On Thursday 11 October 2007 11:56, Matthew Jakeman wrote: > Hi All, > > I am wanting to create a number of sysctl variables at kernel boot time, 1 > for each network interface. I have the code set up to loop through the > interfaces using ifnet_byindex() already for other purposes so wanted to > create them in this loop. > > The problem I'm having is naming them, using the SYSCTL_INT() macro as > specified : > > SYSCTL_INT(parent, nbr, name, access, ptr, val, descr); > > The 'name' parameter is what I wish to manipulate in the loop to append the > interface name on to the sysctl variable created however I can't think of a > way to do this. If there is another way to accomplish this I would be > grateful to hear any suggestions. > > Cheers > Matt > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710111243.27149.m.jakeman>