LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* which .ko file?
@ 2008-11-03 5:03 peter360
2008-11-03 5:10 ` gshan
0 siblings, 1 reply; 3+ messages in thread
From: peter360 @ 2008-11-03 5:03 UTC (permalink / raw)
To: linux-kernel
Hi,
How do I determine the .ko file used for a certain kernel module in a
running kernel? For example, on my dell laptop I see
$ lsmod | grep 3945
ipw3945 230952 1
ieee80211 65161 1 ipw3945
$ modinfo ipw3945
modinfo: could not open /lib/modules/2.6.18-92.1.1.el5/extra/ipw3945.ko: No
such file or directory
$ locate ipw3945.ko
/lib/modules/2.6.18-52.el5/weak-updates/ipw3945.ko
/lib/modules/2.6.18-52.el5/weak-updates/ipw3945/ipw3945.ko
/lib/modules/2.6.18-8.1.4.el5/extra/ipw3945/ipw3945.ko
/lib/modules/2.6.18-92.1.1.el5/weak-updates/ipw3945/ipw3945.ko
/lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945.ko
/lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945/ipw3945.ko
$ uname -a
Linux mylaptop 2.6.18-92.1.1.el5 #1 SMP Thu May 22 09:01:47 EDT 2008 x86_64
x86_64 x86_64 GNU/Linux
How do I find out which ipw3945.ko file was actually loaded into the kernel?
thanks!
--
View this message in context: http://www.nabble.com/which-.ko-file--tp20297391p20297391.html
Sent from the linux-kernel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: which .ko file?
2008-11-03 5:03 which .ko file? peter360
@ 2008-11-03 5:10 ` gshan
2008-11-03 6:35 ` peter360
0 siblings, 1 reply; 3+ messages in thread
From: gshan @ 2008-11-03 5:10 UTC (permalink / raw)
To: peter360; +Cc: linux-kernel
peter360 wrote:
> Hi,
>
> How do I determine the .ko file used for a certain kernel module in a
> running kernel? For example, on my dell laptop I see
> $ lsmod | grep 3945
> ipw3945 230952 1
> ieee80211 65161 1 ipw3945
>
> $ modinfo ipw3945
> modinfo: could not open /lib/modules/2.6.18-92.1.1.el5/extra/ipw3945.ko: No
> such file or directory
>
> $ locate ipw3945.ko
> /lib/modules/2.6.18-52.el5/weak-updates/ipw3945.ko
> /lib/modules/2.6.18-52.el5/weak-updates/ipw3945/ipw3945.ko
> /lib/modules/2.6.18-8.1.4.el5/extra/ipw3945/ipw3945.ko
> /lib/modules/2.6.18-92.1.1.el5/weak-updates/ipw3945/ipw3945.ko
> /lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945.ko
> /lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945/ipw3945.ko
>
> $ uname -a
> Linux mylaptop 2.6.18-92.1.1.el5 #1 SMP Thu May 22 09:01:47 EDT 2008 x86_64
> x86_64 x86_64 GNU/Linux
>
> How do I find out which ipw3945.ko file was actually loaded into the kernel?
> thanks!
>
I think it's
/lib/modules/2.6.18-92.1.1.el5/weak-updates/ipw3945/ipw3945.ko, which
matches your kernel version, right? You could remove it to another
directory instead
of current used /lib/modules/2.6.18-92.1.1.el5/, then try "lsmod | grep
3495". If you
still could see it, then my guess is wrong. Otherwise, I'm correct.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: which .ko file?
2008-11-03 5:10 ` gshan
@ 2008-11-03 6:35 ` peter360
0 siblings, 0 replies; 3+ messages in thread
From: peter360 @ 2008-11-03 6:35 UTC (permalink / raw)
To: linux-kernel
thanks for the quick reply. You are right. I did what you suggested, and
rebooted the computer, now 'lsmod | grep 3945' is not showing anything.
gshan wrote:
>
> peter360 wrote:
>> Hi,
>>
>> How do I determine the .ko file used for a certain kernel module in a
>> running kernel? For example, on my dell laptop I see
>> $ lsmod | grep 3945
>> ipw3945 230952 1
>> ieee80211 65161 1 ipw3945
>>
>> $ modinfo ipw3945
>> modinfo: could not open /lib/modules/2.6.18-92.1.1.el5/extra/ipw3945.ko:
>> No
>> such file or directory
>>
>> $ locate ipw3945.ko
>> /lib/modules/2.6.18-52.el5/weak-updates/ipw3945.ko
>> /lib/modules/2.6.18-52.el5/weak-updates/ipw3945/ipw3945.ko
>> /lib/modules/2.6.18-8.1.4.el5/extra/ipw3945/ipw3945.ko
>> /lib/modules/2.6.18-92.1.1.el5/weak-updates/ipw3945/ipw3945.ko
>> /lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945.ko
>> /lib/modules/2.6.18-92.1.10.el5/weak-updates/ipw3945/ipw3945.ko
>>
>> $ uname -a
>> Linux mylaptop 2.6.18-92.1.1.el5 #1 SMP Thu May 22 09:01:47 EDT 2008
>> x86_64
>> x86_64 x86_64 GNU/Linux
>>
>> How do I find out which ipw3945.ko file was actually loaded into the
>> kernel?
>> thanks!
>>
> I think it's
> /lib/modules/2.6.18-92.1.1.el5/weak-updates/ipw3945/ipw3945.ko, which
> matches your kernel version, right? You could remove it to another
> directory instead
> of current used /lib/modules/2.6.18-92.1.1.el5/, then try "lsmod | grep
> 3495". If you
> still could see it, then my guess is wrong. Otherwise, I'm correct.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
--
View this message in context: http://www.nabble.com/which-.ko-file--tp20297391p20297895.html
Sent from the linux-kernel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-03 6:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-03 5:03 which .ko file? peter360
2008-11-03 5:10 ` gshan
2008-11-03 6:35 ` peter360
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).