From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 1 05:41:01 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBA621065675 for ; Tue, 1 Mar 2011 05:41:01 +0000 (UTC) (envelope-from k0802647@telus.net) Received: from defout.telus.net (defout.telus.net [199.185.220.240]) by mx1.freebsd.org (Postfix) with ESMTP id 616B28FC15 for ; Tue, 1 Mar 2011 05:41:01 +0000 (UTC) Received: from edtncm03 ([199.185.220.221]) by priv-edtnes24.telusplanet.net (InterMail vM.8.01.03.00 201-2260-125-20100507) with ESMTP id <20110301044052.IQHA18968.priv-edtnes24.telusplanet.net@edtncm03> for ; Mon, 28 Feb 2011 21:40:52 -0700 Received: from oliver.bc.lan ([66.183.53.162]) by edtncm03 with bizsmtp id Dggs1g00W3VzCbE01ggsHi; Mon, 28 Feb 2011 21:40:52 -0700 X-Authority-Analysis: v=1.1 cv=/MstOKohVXLcoh41OzLGLG1pGanowbNkwUlbTYXu0H8= c=1 sm=2 a=gsKcAFrldNcA:10 a=8nJEP1OIZ-IA:10 a=M5uFTj07sYmvjh8Bt1MA:9 a=DKej-0hZnK8QlQAwCmAA:7 a=F88puE2vYOyd4MSwb1UbH-3DwTAA:4 a=wPNLvfGTeEIA:10 Received: from [10.111.111.113] (unknown [10.111.111.113]) by oliver.bc.lan (Postfix) with ESMTP id 02908645E; Mon, 28 Feb 2011 20:40:51 -0800 (PST) Message-ID: <4D6C78D3.5090803@telus.net> Date: Mon, 28 Feb 2011 20:40:51 -0800 From: Carl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 01 Mar 2011 05:56:36 +0000 Subject: listing all modules compiled into a kernel instance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2011 05:41:01 -0000 Kernel drivers can be (and in at least one case are) compiled into the kernel but are not reported when queried for, at least not in a way that I am aware of. For example, the ucom driver is present in the GENERIC kernel in this way. My expectation was that "kldstat -v" would list it, if present, but it does not. A design flaw? # ls /boot/kernel/ucom.ko /boot/kernel/ucom.ko # grep ucom /usr/src/sys/i386/conf/GENERIC # kldstat -v | grep ucom # kldload ucom.ko # tail -n 1 /var/log/messages Feb 28 18:18:15 xxxxxx kernel: interface ucom.1 already present in the KLD 'kernel'! How does one query an existing kernel for *all* compiled-in modules? I'm using FreeBSD-8.1-RELEASE-amd64/i386. Carl / K0802647