Subject: Re: packet capturing
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Jason Thorpe <email@example.com>
Date: 01/21/2004 14:51:04
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Jan 21, 2004, at 2:45 PM, Jonathan Stone wrote:
> Hey, nonsense, yourself. Andrew's constructors are variadic.
> That means we just plain _cannot_ write generic macros that pass some
> of their arguments into sysctl constructors, in the way that FreeBSD
> does: the number of arguments in the macro-expansion has to vary,
> and C macros just can't do that.
I think you missed my point.
Go to src/sys/kern and grep for SYSCTL_SETUP. Those are the
constructors to which I referred, and they are inserted into a link set
that is run down at the appropriate time. Those constructors in turn
call the variadic function that actually sets up the sysctl var.
-- Jason R. Thorpe <firstname.lastname@example.org>
content-type: application/pgp-signature; x-mac-type=70674453;
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
-----END PGP SIGNATURE-----