From owner-freebsd-hackers Wed Mar 19 5:21:54 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E09737B404 for ; Wed, 19 Mar 2003 05:21:53 -0800 (PST) Received: from msgbas2x.cos.agilent.com (msgbas1tx.cos.agilent.com [192.25.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id D755643FA3 for ; Wed, 19 Mar 2003 05:21:51 -0800 (PST) (envelope-from ctuffli@cre85086tuf.rose.agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 7C5981932 for ; Wed, 19 Mar 2003 06:21:51 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 1925F5AE for ; Wed, 19 Mar 2003 06:21:51 -0700 (MST) Received: from mail.rose.agilent.com (mailsrv@bellhop [130.30.179.19]) by rtl.rose.agilent.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.1.0) with ESMTP id FAA24489 for ; Wed, 19 Mar 2003 05:21:50 -0800 (PST) Received: from cre85086tuf.rose.agilent.com ([130.30.174.150]) by mail.rose.agilent.com (Netscape Messaging Server 3.6) with ESMTP id AAA5B3F; Wed, 19 Mar 2003 05:21:47 -0800 Received: by cre85086tuf.rose.agilent.com (Postfix, from userid 1001) id 7031F19DF27; Wed, 19 Mar 2003 05:21:24 -0800 (PST) Date: Wed, 19 Mar 2003 05:21:24 -0800 From: Chuck Tuffli To: saju.pillai@oracle.com Cc: hackers@freebsd.org Subject: Re: kldload - passing params to kernel module Message-ID: <20030319132123.GA47493@cre85086tuf.rose.agilent.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 19, 2003 at 04:31:09PM +0530, saju.pillai@oracle.com wrote: > > Hello, > > Is it possible to pass parameters to a kernel module during > loading using kldload ? (on the lines of insmod - linux ?). > > I googled around a bit, but did not find any examples of kldload doing > that. > > regards > srp Under the 4.x series, this isn't possible. Under 5.0, I believe you can set kernel environment variables using kenv and then load your driver. Take a look at (or search through the freebsd-hackers archive for "load time module parameters") http://www.freebsd.org/cgi/getmsg.cgi?fetch=127033+0+/usr/local/www/db/text/2002/freebsd-hackers/20021110.freebsd-hackers for some additional information. -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message