Date: Tue, 11 Jul 2000 20:37:34 -0600 From: Warner Losh <imp@village.org> To: "Gary T. Corcoran" <gcorcoran@lucent.com> Cc: Mike Smith <msmith@FreeBSD.ORG>, FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: Module parameters? Message-ID: <200007120237.UAA09907@harmony.village.org> In-Reply-To: Your message of "Tue, 11 Jul 2000 22:32:54 EDT." <396BD8D6.6EC47A68@lucent.com> References: <396BD8D6.6EC47A68@lucent.com> <396BD18B.9155B046@lucent.com> <396BC2C5.E89AD827@lucent.com> <200007112355.QAA00803@mass.osd.bsdi.com> <200007112352.RAA08554@harmony.village.org> <200007120148.TAA09591@harmony.village.org> <200007120215.UAA09795@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <396BD8D6.6EC47A68@lucent.com> "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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007120237.UAA09907>