From owner-freebsd-current@FreeBSD.ORG Thu Mar 17 19:39:02 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FFFD16A4CE; Thu, 17 Mar 2005 19:39:02 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8249C43D5A; Thu, 17 Mar 2005 19:39:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j2HJc5Gn032341; Thu, 17 Mar 2005 12:38:05 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 17 Mar 2005 12:38:14 -0700 (MST) Message-Id: <20050317.123814.90826457.imp@bsdimp.com> To: dougb@freebsd.org From: "M. Warner Losh" In-Reply-To: <42375FD2.2080706@freebsd.org> References: <42363DAC.7040001@FreeBSD.org> <200503152107.23496.freebsd@redesjm.local> <42375FD2.2080706@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: josemi@freebsd.jazztel.es cc: current@freebsd.org Subject: Re: rcNG changes/aditions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 19:39:02 -0000 In message: <42375FD2.2080706@freebsd.org> Doug Barton writes: : Jose M Rodriguez wrote: : > El Martes, 15 de Marzo de 2005 02:43, Doug Barton escribi=F3: : > = : >>Jose M Rodriguez wrote: : >> : >>>Hi, : >>>I'll glad to know if this is of interest: : >>> : >>>update to PR conf/75137 (sound modules): I rework this adding : >>>support for preloaded modules to /etc/rc.subr : >> : >>Why is this necessary? My understanding is that modules load : >>themselves when called. Do the sound modules do this differently? : >> : > = : > = : > This is not needed (I think). You can load modules = : > via /boot/loader.conf, but may be more confortable if we 'go module= s' = : > in a future. : = : I don't think you understand what I'm saying. For most modules, it is= not = : actually necessary to pre-load them at all. For example, I have cd966= 0 as a = : module, it's not compiled into my kernel. When I mount a cd9660 file = system = : the kernel module is automatically loaded. There is no need to pre-lo= ad it. = : The same is true of (most) modules that create devices, such as ndis.= : = : I don't know the specifics of the sound module, I compile it into my = kernel. = : However, as you pointed out in the rare case that it's necessary to a= ctually = : pre-load a kernel module (such as agp), we have a mechanism for that = in = : loader.conf already. I don't think that adding that code to rc.subr i= s a = : useful exercise, and in fact I would oppose it as needless duplicatio= n of = : effort. It is also better to have the boot loader load modules that you are going to load right away anyway. Having it in rc is insane. Warner