Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2011 01:47:21 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kldstat -q -m seems broken
Message-ID:  <20110611224721.GR48734@deviant.kiev.zoral.com.ua>
In-Reply-To: <4DF3EA2B.9000603@FreeBSD.org>
References:  <4DF3EA2B.9000603@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110611224721.GR48734>