Date: Tue, 11 Jul 2000 22:32:54 -0400 From: "Gary T. Corcoran" <gcorcoran@lucent.com> To: Warner Losh <imp@village.org> Cc: Mike Smith <msmith@FreeBSD.ORG>, FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: Module parameters? Message-ID: <396BD8D6.6EC47A68@lucent.com> References: <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
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 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?396BD8D6.6EC47A68>
