Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2003 05:21:24 -0800
From:      Chuck Tuffli <chuck_tuffli@agilent.com>
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>
In-Reply-To: <Pine.BSF.4.44.0303191628020.490-100000@incq138ta.idc.oracle.com>
References:  <Pine.BSF.4.44.0303191628020.490-100000@incq138ta.idc.oracle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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    <chuck_tuffli AT NO_SPAM agilent DOT com>
Agilent Technologies, Storage and Networking

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030319132123.GA47493>