Re: sysctl hacks

2004-08-22 Thread Alfred Perlstein
* John-Mark Gurney <[EMAIL PROTECTED]> [040822 00:18] wrote: > Alfred Perlstein wrote this message on Sat, Aug 21, 2004 at 23:47 -0700: > > > > I have a sysctl node that takes a struct like so: > > > > struct mysysctldata { > > (data here) > > struct moredata * vc_ptr; > > size_t len v

Re: sysctl hacks

2004-08-22 Thread John-Mark Gurney
Alfred Perlstein wrote this message on Sat, Aug 21, 2004 at 23:47 -0700: > * Poul-Henning Kamp <[EMAIL PROTECTED]> [040821 13:29] wrote: > > In message <[EMAIL PROTECTED]>, Alfred Perlstein writes: > > >I'm doing some work that requires that I have a sysctl structure > > >be passed around, but insi

Re: sysctl hacks

2004-08-21 Thread Alfred Perlstein
* Poul-Henning Kamp <[EMAIL PROTECTED]> [040821 13:29] wrote: > In message <[EMAIL PROTECTED]>, Alfred Perlstein writes: > >I'm doing some work that requires that I have a sysctl structure > >be passed around, but inside that structure are several pointers I > >may need to dereference. > > > >Basic

Re: sysctl hacks

2004-08-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Alfred Perlstein writes: >I'm doing some work that requires that I have a sysctl structure >be passed around, but inside that structure are several pointers I >may need to dereference. > >Basically: > >struct mysysctldata { > (data here) > void *moredata; >

sysctl hacks

2004-08-21 Thread Alfred Perlstein
I'm doing some work that requires that I have a sysctl structure be passed around, but inside that structure are several pointers I may need to dereference. Basically: struct mysysctldata { (data here) void *moredata; size_t morelen; }; What is the proper way of sysctl'ing IN the d