0

我很难弄清楚 Android 4.0.3 的 lsmod 输出。所有这些“实时地址”条目是什么意思?

option 14926 0 - Live 0xbf12b000
usb_wwan 9419 1 option, Live 0xbf124000
cdc_acm 15150 0 - Live 0xbf11b000
g_crypto 11918 0 - Live 0xbf0cc000
g_wmt_cmoscam 1421 0 - Live 0xbf0c8000
g_wmt_v4l2_cmos 68606 1 g_wmt_cmoscam, Live 0xbf0b1000
g_wmt_v4l2 5135 1 g_wmt_v4l2_cmos, Live 0xbf0ab000
g_wmt_ve_h264 11644 0 - Live 0xbf0a5000
g_wmt_ve_com 9021 1 g_wmt_ve_h264, Live 0xbf09e000
g_wmt_vd_vpx 65936 0 - Live 0xbf088000
g_wmt_vd_rv 735 0 - Live 0xbf084000
g_wmt_vd_vc1 713 0 - Live 0xbf080000
g_wmt_vd_h264 715 0 - Live 0xbf07c000
g_wmt_vd_h263 715 0 - Live 0xbf078000
g_wmt_vd_divx 715 0 - Live 0xbf074000
g_wmt_vd_mpeg4 717 0 - Live 0xbf070000
g_wmt_vd_mpeg2 717 0 - Live 0xbf06c000
g_wmt_vd_jdec 18829 0 - Live 0xbf063000
g_wmt_lock 2881 5 - Live 0xbf05f000
g_wmt_vd_com 158558 12 g_wmt_vd_vpx,g_wmt_vd_rv,g_wmt_vd_vc1,g_wmt_vd_h264,g_wmt_vd_h263,g_wmt_vd_divx,g_wmt_vd_mpeg4,g_wmt_vd_mpeg2,g_wmt_vd_jdec, Live 0xbf032000
mali 102375 6 - Live 0xbf00d000
ump 27968 11 mali, Live 0xbf000000

我问这个是因为我使用完全相同的内核来启动 Ubuntu,这是 lsmod 在 Ubuntu 上的输出

option                 14926  0 
g_wmt_lock              2881  0 
g_wmt_vd_jdec          18829  0 
g_wmt_vd_mpeg2           717  0 
g_wmt_vd_mpeg4           717  0 
g_wmt_vd_divx            715  0 
g_wmt_vd_h263            715  0 
g_wmt_vd_h264            715  0 
g_wmt_vd_vc1             713  0 
g_wmt_vd_rv              735  0 
g_wmt_vd_vpx           65936  0 
g_wmt_ve_h264          11644  0 
g_wmt_ve_com            9021  1 g_wmt_ve_h264
g_wmt_cmoscam           1421  0 
g_wmt_v4l2_cmos        68606  1 g_wmt_cmoscam
g_wmt_v4l2              5135  1 g_wmt_v4l2_cmos
g_wmt_vd_com          158558  9 g_wmt_vd_jdec,g_wmt_vd_mpeg2,g_wmt_vd_mpeg4,g_wmt_vd_divx,g_wmt_vd_h263,g_wmt_vd_h264,g_wmt_vd_vc1,g_wmt_vd_rv,g_wmt_vd_vpx
g_crypto               11918  0 
mali                  102375  0 
ump                    27968  1 mali
cdc_acm                15150  0 
usb_wwan                9419  1 option
rt3070sta_rtl8188     442205  0 

HDMI、Camera 等无法在 Ubuntu 上运行,尽管在两个操​​作系统上都加载了相同的模块。这就是我询问 Live 和 ADDR 列的原因。我想知道这是否与 Ubuntu 缺乏功能有关。

4

1 回答 1

2

lsmod只是从文件中读取/proc/modules(它实际上调用 cat /proc/modules

这对于许多类似 UNIX 的操作系统来说都是一样的:

The first column contains the name of the module.

The second column refers to the memory size of the module, in bytes.

The third column lists how many instances of the module are currently loaded. A value of zero represents an unloaded module.

The fourth column states if the module depends upon another module to be present in order to function, and lists those other modules.

The fifth column lists what load state the module is in: Live, Loading, or Unloading are the only possible values.

The sixth column lists the current kernel memory offset for the loaded module. This information can be useful for debugging purposes, or for profiling tools such as oprofile. 

资源

于 2013-04-24T22:12:38.757 回答