Warner Losh wrote:
> 
> Something like the following?
> 
> Comments?
> 
> struct driver_param
> {
>         const char *name;
>         int (*fnp)(const char *, void *, void *);
>         size_t off;
>         void *argp;
> };
> 

Perhaps instead of the "size_t off" above, which from the
code below tied us always into "softc", what about a more
general "void * varaddr"?  That is, just put the address of
the variable into the driver_param struct?  That would allow
driver global variables to be tuned as well - or in other
structures besides softc, if one wanted...?

Gary


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to