Reading configuration file from driver during load
Gireesh
gireesh.nagabhushana at neterion.com
Tue Sep 19 07:24:44 PDT 2006
Oliver Fromme wrote:
>
> Gireesh wrote:
> > I have a driver which has some parameters hardcoded as of now. It
> requires
> > values of these parameters to be available during load (during attach
> > function). My requirement is to read these parameters from a
> configuration
> > file so that we can load driver with different values to parameters
> without
> > rebuilding driver.
>
> I think that sysctl or kenv variables are best suited for
> that purpose. There are a lot of examples for that in
> existing drivers.
>
> Best regards
> Oliver
>
> --
> Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
> Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
> Any opinions expressed in this message may be personal to the author
> and may not necessarily reflect the opinions of secnetix in any way.
>
> We're sysadmins. To us, data is a protocol-overhead.
> _______________________________________________
> freebsd-drivers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe at freebsd.org"
>
>
Thanks Oliver for your reply.
We can use sysctls. But we should have created those sysctl entries before
loading
driver. Otherwise, we have to use a kernel module to create those entries.
Do we have any way of avoiding this?
Thanks,
Gireesh
--
View this message in context: http://www.nabble.com/Reading-configuration-file-from-driver-during-load-tf2298986.html#a6389336
Sent from the freebsd-drivers mailing list archive at Nabble.com.
More information about the freebsd-drivers
mailing list