From owner-freebsd-questions@FreeBSD.ORG Thu Jul 5 08:43:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D90D41065670 for ; Thu, 5 Jul 2012 08:43:04 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp3.insight.synacor.com [208.47.185.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9FD408FC17 for ; Thu, 5 Jul 2012 08:43:04 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=z5JnbuUV59w9XxpMO3Yhc9aVbWy8YmjdXuO1Tcff/LU= c=1 sm=0 a=nB4jEUsvz2gA:10 a=jLN7EqiLvroA:10 a=NU4bWbMQXz5txMbroUIA:9 a=Q/oqmR4JO1zR3vNQamCQeQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.26.53 as permitted sender) Received: from [74.134.26.53] ([74.134.26.53:54788] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id D3/79-06836-19355FF4; Thu, 05 Jul 2012 04:42:57 -0400 Date: Thu, 05 Jul 2012 04:42:57 -0400 Message-ID: From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: WITHOUT_MODULES in /etc/make.conf doesn't work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 08:43:04 -0000 > No, I'm just borderline sure that WITHOUT_MODULES works > the same way as MODULES_OVERRIDE, that is it looks in > top directory in /usr/src/sys/modules/ and ulpt is in > /usr/src/sys/modules/usb/ulpt > Speaking of RAM savings, things you would always load > should be compiled in kernel, modules per design take > more RAM than compiled in stuff. I suppose with a generic kernel where many drivers would be put in modules and not the kernel proper, RAM would be less cluttered. I think that rationale was used with Linux, and I believe kernel modules came to Linux before FreeBSD and to FreeBSD before NetBSD, am not sure about other BSDs. I remember when it was necessary to "insmod hpfs" to mount an HPFS partition from Linux, it was not done automatically. Also, when adding a new device and driver, just that module could be compiled without recompiling the rest of the kernel: useful perhaps when installing a prefabricated Linux distribution. But when running on one specific computer, I see the rationale for NO_MODULES=yes. Now is there any way to prevent ulpt.ko from loading when a USB printer is connected? Tom