How can I get a list of all the active kernel drivers on my Android system?. What is the equivelant of Linux "lsmod" in Android? I used adb shell and also opened my Android Terminal emulator app and did an "lsmod". I get some kind of a lame list of two items from my BSP. But it doesn't list all the drivers on my entire system that the Linux kernel has actively running.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Doing an 'ls /sys/module/' on my Samsung Galaxy S3 running 4.1.1 Jelly bean, I get the following output
http://pastebin.com/2zF8RwvS
That is a list of all the built-in modules in my Kernel 3.0.31
Additionally, there are loadable modules, 'ls /system/lib/modules/'
http://pastebin.com/G5KLC65V
回答2:
lsmod will not list all the active drivers in the kernel. lsmod is to list the kernel modules that are inserted now, they can be drivers or some other features. Basically, on embedded systems most of the drivers will not be built as modules, instead they are statically built into the kernel. To get to know all the drivers, you need to go through the /sys directory.