From owner-freebsd-hackers  Tue Nov  5 21:21:59 2002
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 A6EA637B401
	for <freebsd-hackers@FreeBSD.ORG>; Tue,  5 Nov 2002 21:21:58 -0800 (PST)
Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 20E0643E4A
	for <freebsd-hackers@FreeBSD.ORG>; Tue,  5 Nov 2002 21:21:58 -0800 (PST)
	(envelope-from imp@bsdimp.com)
Received: from localhost (warner@rover2.village.org [10.0.0.1])
	by harmony.village.org (8.12.3/8.12.3) with ESMTP id gA65Lupk096490;
	Tue, 5 Nov 2002 22:21:56 -0700 (MST)
	(envelope-from imp@bsdimp.com)
Date: Tue, 05 Nov 2002 22:21:47 -0700 (MST)
Message-Id: <20021105.222147.10576668.imp@bsdimp.com>
To: chuck_tuffli@agilent.com
Cc: freebsd-hackers@FreeBSD.ORG
Subject: Re: load time module parameters?
From: "M. Warner Losh" <imp@bsdimp.com>
In-Reply-To: <20021105222958.GH17013@cre85086tuf.rose.agilent.com>
References: <20021105222958.GH17013@cre85086tuf.rose.agilent.com>
X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-hackers@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-hackers.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-hackers>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-hackers>
X-Loop: FreeBSD.ORG

In message: <20021105222958.GH17013@cre85086tuf.rose.agilent.com>
            Chuck Tuffli <chuck_tuffli@agilent.com> writes:
: I'm a newbie to FreeBSD and am wondering if there is a way to pass
: loadable kernel modules parameters. Under Linux, if a module had
: configurable parameters "a" and "b", you can do something like
: 
:    insmod module.o parameters="a:10 b:5"
: 
: I noticed that some of the drivers grabed information from the
: "environment" using getenv_int(), but I couldn't seem to get this to
: work. Thanks for any thoughts.

You can generally do this with hints and/or kernel environment
variables.  However, you can't easily edit these things once you
boot.

Warner

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