Subject: Re: merge of freebsd eventhandler
To: None <>
From: None <>
List: tech-kern
Date: 05/26/2006 17:32:41
On Fri, May 26, 2006 at 08:27:04AM -0700, Garrett D'Amore wrote:
> Why not just pass a "couple" of arguments, i.e. some arbitrary number
> like 3 arguments.  If a particular call needs more, it can easily do so
> thru a structure, with 2 or 3 arguments should be enough for nearly any
> hook, without penalizing the rest by making them use varargs.

Is there any penality in the caller or callee when the argument types
themselve are fixed? E.g. is GCC clever enough to optimise the va_arg
stuff away?