All of lore.kernel.org
 help / color / mirror / Atom feed
* listing drivers
@ 2013-01-22 13:46 Thiago Farina
  2013-01-22 14:27 ` Arend van Spriel
  0 siblings, 1 reply; 5+ messages in thread
From: Thiago Farina @ 2013-01-22 13:46 UTC (permalink / raw)
  To: linux list; +Cc: Greg Kroah-Hartman

Hi folks,

Is there a way to list the drivers installed/used in my desktop and
map them (the path) to their source code in the linux kernel tree?

Thanks,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing drivers
  2013-01-22 13:46 listing drivers Thiago Farina
@ 2013-01-22 14:27 ` Arend van Spriel
  2013-01-23  6:16   ` zhuyj
  2013-01-23 15:30   ` Thiago Farina
  0 siblings, 2 replies; 5+ messages in thread
From: Arend van Spriel @ 2013-01-22 14:27 UTC (permalink / raw)
  To: Thiago Farina; +Cc: linux list, Greg Kroah-Hartman

On 01/22/2013 02:46 PM, Thiago Farina wrote:
> Hi folks,
> 
> Is there a way to list the drivers installed/used in my desktop and
> map them (the path) to their source code in the linux kernel tree?

This might work for you (if using bash):

for m in $(cat /proc/modules | gawk '{ print $1; }');do modinfo $m |
grep 'filename:'; done

Maybe any awk flavor will do.

Gr. AvS

> Thanks,
> --
> 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/
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing drivers
  2013-01-22 14:27 ` Arend van Spriel
@ 2013-01-23  6:16   ` zhuyj
  2013-01-23 15:30   ` Thiago Farina
  1 sibling, 0 replies; 5+ messages in thread
From: zhuyj @ 2013-01-23  6:16 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: Thiago Farina, linux list, Greg Kroah-Hartman

On 01/22/2013 10:27 PM, Arend van Spriel wrote:
> On 01/22/2013 02:46 PM, Thiago Farina wrote:
>> Hi folks,
>>
>> Is there a way to list the drivers installed/used in my desktop and
>> map them (the path) to their source code in the linux kernel tree?
> This might work for you (if using bash):
>
> for m in $(cat /proc/modules | gawk '{ print $1; }');do modinfo $m |
> grep 'filename:'; done
>
> Maybe any awk flavor will do.
>
> Gr. AvS
modinfo `cat /proc/modules | awk -F " " '{print $1}'`
can work.

Thanks a lot.
Zhu Yanjun
>> Thanks,
>> --
>> 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/
>>
>
> --
> 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/
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing drivers
  2013-01-22 14:27 ` Arend van Spriel
  2013-01-23  6:16   ` zhuyj
@ 2013-01-23 15:30   ` Thiago Farina
  2013-01-23 17:24     ` Arend van Spriel
  1 sibling, 1 reply; 5+ messages in thread
From: Thiago Farina @ 2013-01-23 15:30 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux list, Greg Kroah-Hartman

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

Hi,

On Tue, Jan 22, 2013 at 12:27 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 01/22/2013 02:46 PM, Thiago Farina wrote:
>> Hi folks,
>>
>> Is there a way to list the drivers installed/used in my desktop and
>> map them (the path) to their source code in the linux kernel tree?
>
> This might work for you (if using bash):
>
> for m in $(cat /proc/modules | gawk '{ print $1; }');do modinfo $m |
> grep 'filename:'; done
>
Thanks a lot Arend! That is exactly what I wanted ;)

--
Thiago

[-- Attachment #2: drivers-list --]
[-- Type: application/octet-stream, Size: 2786 bytes --]

filename:       /lib/modules/2.6.38-16-generic/kernel/fs/nls/nls_iso8859-1.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/fs/nls/nls_cp437.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/fs/fat/vfat.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/fs/fat/fat.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/fs/binfmt_misc.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/parport/parport_pc.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/char/ppdev.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/usb/snd-usb-audio.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd-pcm.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd-page-alloc.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd-hwdep.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/usb/snd-usbmidi-lib.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/seq/snd-seq-midi.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd-rawmidi.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/seq/snd-seq-midi-event.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/seq/snd-seq.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd-timer.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/seq/snd-seq-device.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/core/snd.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/sound/soundcore.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/usb/storage/usb-storage.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/usb/storage/uas.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/firmware/dcdbas.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/gpu/drm/i915/i915.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/input/mouse/psmouse.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/input/serio/serio_raw.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/gpu/drm/drm_kms_helper.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/gpu/drm/drm.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/i2c/algos/i2c-algo-bit.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/acpi/video.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/char/lp.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/parport/parport.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/hid/usbhid/usbhid.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/hid/hid.ko
filename:       /lib/modules/2.6.38-16-generic/kernel/drivers/net/tg3.ko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing drivers
  2013-01-23 15:30   ` Thiago Farina
@ 2013-01-23 17:24     ` Arend van Spriel
  0 siblings, 0 replies; 5+ messages in thread
From: Arend van Spriel @ 2013-01-23 17:24 UTC (permalink / raw)
  To: Thiago Farina; +Cc: linux list, Greg Kroah-Hartman

On 01/23/2013 04:30 PM, Thiago Farina wrote:
> Hi,
> 
> On Tue, Jan 22, 2013 at 12:27 PM, Arend van Spriel <arend@broadcom.com> wrote:
>> On 01/22/2013 02:46 PM, Thiago Farina wrote:
>>> Hi folks,
>>>
>>> Is there a way to list the drivers installed/used in my desktop and
>>> map them (the path) to their source code in the linux kernel tree?
>>
>> This might work for you (if using bash):
>>
>> for m in $(cat /proc/modules | gawk '{ print $1; }');do modinfo $m |
>> grep 'filename:'; done
>>
> Thanks a lot Arend! That is exactly what I wanted ;)

You are welcome. Of course, not all modules are (device) drivers.

Gr. AvS

> --
> Thiago
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-23 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 13:46 listing drivers Thiago Farina
2013-01-22 14:27 ` Arend van Spriel
2013-01-23  6:16   ` zhuyj
2013-01-23 15:30   ` Thiago Farina
2013-01-23 17:24     ` Arend van Spriel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.