From owner-freebsd-current@FreeBSD.ORG Sat Jun 11 22:47:26 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EDB1106564A; Sat, 11 Jun 2011 22:47:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9F1388FC13; Sat, 11 Jun 2011 22:47:25 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p5BMlL9A019365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Jun 2011 01:47:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p5BMlLnv020433; Sun, 12 Jun 2011 01:47:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p5BMlLDW020432; Sun, 12 Jun 2011 01:47:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 12 Jun 2011 01:47:21 +0300 From: Kostik Belousov To: Doug Barton Message-ID: <20110611224721.GR48734@deviant.kiev.zoral.com.ua> References: <4DF3EA2B.9000603@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SQPSm61dWvDP+AE1" Content-Disposition: inline In-Reply-To: <4DF3EA2B.9000603@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org Subject: Re: kldstat -q -m seems broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 11 Jun 2011 22:47:26 -0000 --SQPSm61dWvDP+AE1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 11, 2011 at 03:20:27PM -0700, Doug Barton wrote: > Howdy, >=20 > I'm running 9.0-CURRENT r222889M amd64 and in the kld script I just sent= =20 > to the list I had to use the slower 'load_kld -e' form because 'kldstat= =20 > -q -m foo' is not working for me. For example: >=20 > kldstat -qm linux ; echo $? > 1 >=20 > However the module is definitely loaded: > 5 2 0xffffffff81828000 1f113 linux.ko >=20 > The same is true for several of my other modules, so it seems to be a=20 > fairly general problem. Anyone interested in taking a look? Look at the output of kldstat -v. Modules kld have many to one relationship; one kld usually have several modules, with the name not directly related to kld itself. E.g., tp check what is in kld "linux" x% kldstat -v -n linux Id Refs Address Size Name 25 1 0xffffffff81a75000 1f76e linux.ko (/boot/kernel/linux.ko) Contains modules: Id Name 139 linuxelf and then x% kldstat -m linuxelf Id Refs Name 139 1 linuxelf --SQPSm61dWvDP+AE1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3z8HkACgkQC3+MBN1Mb4g9wQCfZ9rWdCkKRLkK1GlI3yQfJnX0 2OUAmwfarK4jWaVQp8qv/vEYd1rKYBCn =pmqn -----END PGP SIGNATURE----- --SQPSm61dWvDP+AE1--