Date: Thu, 4 Jun 2009 12:12:55 -0700 From: David Somayajulu <david.somayajulu@qlogic.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org> Subject: RE: How do I pass configuration parameters to a FreeBSD Device Driver ? Message-ID: <75E1A2A7D185F841A975979B0906BBA65A4D0C663A@AVEXMB1.qlogic.org> In-Reply-To: <20090604.005723.1179135550.imp@bsdimp.com> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> <20090604.005723.1179135550.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh wrote: <clip> > : I have a loadable driver module and would like to do the following: > : 1. Set some tunable parameters of the driver. > : 2. Load the driver. Run a few tests. > : 3. Unload the driver. > : 4. repeat steps 1 thru 3. >=20 > kenv can set hints. >=20 > Hints are properly retrieved with things like resource_int_value. >=20 > prefer_iomap =3D 0; > resource_int_value(device_get_name(dev), device_get_unit(dev), > "prefer_iomap", &prefer_iomap); >=20 > would look for the hint "hints.<driver>.<unit>.prefer_iomap" and > return the value if it finds it. >=20 > Warner Thanks a lot. This is exactly what I need. Appreciate everyone's responses. thanks david S.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75E1A2A7D185F841A975979B0906BBA65A4D0C663A>