All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhuyj <zyjzyj2000@gmail.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: Thiago Farina <tfransosi@gmail.com>,
	linux list <linux-kernel@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: listing drivers
Date: Wed, 23 Jan 2013 14:16:16 +0800	[thread overview]
Message-ID: <50FF8030.4060604@gmail.xom> (raw)
In-Reply-To: <50FEA1BC.6070101@broadcom.com>

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


  reply	other threads:[~2013-01-23  6:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22 13:46 listing drivers Thiago Farina
2013-01-22 14:27 ` Arend van Spriel
2013-01-23  6:16   ` zhuyj [this message]
2013-01-23 15:30   ` Thiago Farina
2013-01-23 17:24     ` Arend van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50FF8030.4060604@gmail.xom \
    --to=zyjzyj2000@gmail.com \
    --cc=arend@broadcom.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tfransosi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.