lkml.org 
[lkml]   [2013]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: listing drivers
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/
>



\
 
 \ /
  Last update: 2013-01-23 08:01    [W:0.066 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site