Reading configuration file from driver during load

Oliver Fromme olli at lurza.secnetix.de
Tue Sep 19 06:46:20 PDT 2006


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.


More information about the freebsd-drivers mailing list