From owner-freebsd-drivers@FreeBSD.ORG Tue Sep 19 14:24:44 2006 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82D7416A40F for ; Tue, 19 Sep 2006 14:24:44 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id E09A443D78 for ; Tue, 19 Sep 2006 14:24:41 +0000 (GMT) (envelope-from bounces@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GPgWf-0001Mm-Dz for freebsd-drivers@freebsd.org; Tue, 19 Sep 2006 07:24:41 -0700 Message-ID: <6389336.post@talk.nabble.com> Date: Tue, 19 Sep 2006 07:24:41 -0700 (PDT) From: Gireesh To: freebsd-drivers@freebsd.org In-Reply-To: <200609191346.k8JDk9b3076219@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gireesh.nagabhushana@neterion.com References: <6387977.post@talk.nabble.com> <200609191346.k8JDk9b3076219@lurza.secnetix.de> Subject: Re: Reading configuration file from driver during load X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 14:24:44 -0000 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.