From owner-freebsd-hackers Tue Jul 11 19:37:45 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4E3FA37BA81; Tue, 11 Jul 2000 19:37:41 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id UAA50869; Tue, 11 Jul 2000 20:37:40 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id UAA09907; Tue, 11 Jul 2000 20:37:34 -0600 (MDT) Message-Id: <200007120237.UAA09907@harmony.village.org> To: "Gary T. Corcoran" Subject: Re: Module parameters? Cc: Mike Smith , FreeBSD Hackers 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> Date: Tue, 11 Jul 2000 20:37:34 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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