Re: kldstat -q -m seems broken

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Sun, 12 Jun 2011 01:47:21 +0300
On Sat, Jun 11, 2011 at 03:20:27PM -0700, Doug Barton wrote:
> Howdy,
> 
> I'm running 9.0-CURRENT r222889M amd64 and in the kld script I just sent 
> to the list I had to use the slower 'load_kld -e' form because 'kldstat 
> -q -m foo' is not working for me. For example:
> 
> kldstat -qm linux ; echo $?
> 1
> 
> However the module is definitely loaded:
>  5    2 0xffffffff81828000 1f113    linux.ko
> 
> The same is true for several of my other modules, so it seems to be a 
> 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

Received on Sat Jun 11 2011 - 20:47:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC