Date: Tue, 19 Sep 2006 07:24:41 -0700 (PDT) From: Gireesh <gireesh.nagabhushana@neterion.com> To: freebsd-drivers@freebsd.org Subject: Re: Reading configuration file from driver during load Message-ID: <6389336.post@talk.nabble.com> In-Reply-To: <200609191346.k8JDk9b3076219@lurza.secnetix.de> References: <6387977.post@talk.nabble.com> <200609191346.k8JDk9b3076219@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6389336.post>