From owner-freebsd-drivers@FreeBSD.ORG Thu Jun 4 03:47:16 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E62CE106566C for ; Thu, 4 Jun 2009 03:47:16 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id A954D8FC16 for ; Thu, 4 Jun 2009 03:47:16 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n543S5iK072785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Jun 2009 20:28:06 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A273F45.8050700@freebsd.org> Date: Wed, 03 Jun 2009 20:28:05 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: David Somayajulu References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: "freebsd-drivers@freebsd.org" Subject: Re: How do I pass configuration parameters to a FreeBSD Device Driver ? 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: Thu, 04 Jun 2009 03:47:17 -0000 David Somayajulu wrote: > Larry Maloney wrote: > >> David Somayajulu wrote: >> >>> Hi All, >>> I would appreciate if you could let me know, how I can pass >>> >> configuration parameters to a device driver, which can be processed >> during either probe() or attach() ? Is there a way to read them from a >> conf file of some sort ? Basically, I am interested in setting some >> tunable parameters during driver initialization, without needing to >> recompile the driver every time. >> loader(8) allows you to set tunable parameters before boot; this is equivalent to linux-style module parameters (mostly). Unfortunately I don't see anything in the man pages that documents them; check sys/sys/kernel.h for the details and/or loader(8). Sam