From mboxrd@z Thu Jan 1 00:00:00 1970 From: davide@gengisdave.org (Davide Gianforte) Date: Tue, 09 Dec 2014 21:53:33 +0100 Subject: List my Staging Drivers In-Reply-To: References: Message-ID: <42976981.0zcCP3BMYl@mayhem> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org In data marted? 9/12/2014 18:45:59, Lucas Tanure ha scritto: > Hi, > > How do I list where are the modules that I'm using inside kernel ? > > Goal: find drivers that I could start improving ( understand, develop, > test , submit ) > How : If my machine uses a driver, I can read the code, modify and > test in my machine > > So, if I'm able to see where is located the source for a driver that > my machine uses, I can modify and test. > > Ideas ? > > Thanks 'lsmod' and 'lspci -k' show your loaded modules and which module is handling a device. 'find /lib/modules/$(uname -r)/kernel $module_name' show you where the module is located; /lib/modules//kernel folder tree is equal to the source tree. Dave