有时候忘了加载模块时参数的名称, 可以通过modinfo 获取.
示例:
$ modinfo /lib/modules/3.5.0-22-generic/kernel/drivers/media/video/gspca/gspca_mr97310a.ko
filename: /lib/modules/3.5.0-22-generic/kernel/drivers/media/video/gspca/gspca_mr97310a.ko
license: GPL
description: GSPCA/Mars-Semi MR97310A USB Camera Driver
author: Kyle Guinn <[email protected]>,Theodore Kilgore <[email protected]>
srcversion: 93B4DD4FDB1797CF8603421
alias: usb:v093Ap010Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v093Ap010Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v08CAp0111d*dc*dsc*dp*ic*isc*ip*
alias: usb:v08CAp0110d*dc*dsc*dp*ic*isc*ip*
depends: gspca_main
intree: Y
vermagic: 3.5.0-22-generic SMP mod_unload modversions
parm: force_sensor_type:Force sensor type (-1 (auto), 0 or 1) (int)
参数就是以parm开头的部分.