In message <[EMAIL PROTECTED]> "Gary T. Corcoran" writes:
: 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...?

No.  That makes it very hard to have multiple instances.  You'd have
to fill it in for each instance.  It also encourages good programming
by making driver writers use encapsilation. :-)  

Warner




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

Reply via email to