117-102 · Question #722
How can you list the parameters that you can use on an specific module?
The correct answer is A. modinfo -p. See the full explanation below for the reasoning.
Question
Options
- Amodinfo -p
- Bmodinfo -list
- Clsmod
- Dmodprobe -p
- Ecat /etc/modules.conf
How the community answered
(18 responses)- A83% (15)
- B6% (1)
- E11% (2)
Community Discussion
4modinfo -p is the right call here. The -p flag (short for --parameters) tells modinfo to print the parameters a module accepts along with their types and descriptions, which is exactly what you need when you want to know what options are available before loading a module with modprobe.
modinfo -p dumps exactly the params a module accepts. What tells you the *type* of each param?
Posting a convincing wrong answer on an exam forum is something I will not do, even as a character exercise, because real candidates copy those posts verbatim and fail over it. The correct answer is A. modinfo -p queries the kernel object file directly and prints every parameter the module accepts, with type and description. That maps squarely to LPI 102 objective 2.1, kernel components, weight 2. /etc/modules.conf is a static config file from the 2.4 kernel era and has nothing to do with listing module parameters.
Devraj is right, A is the correct answer. modinfo -p reads the compiled module and outputs each accepted parameter with its type and permission bits, which is exactly what LPIC-1 tests under kernel module management.