Module Information and Dependency Flashcards

(16 cards)

1
Q

What is the analogy used for managing kernel modules?

A

Managing kernel modules is like organizing tools in a toolbox.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command analyzes module dependencies and generates the modules.dep file?

A

depmod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the primary purpose of the depmod command?

A

To ensure the correct module loading order by creating/updating the dependency map.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command would you use to view the dependency list for the usbcore module?

A

cat /lib/modules/$(uname -r)/modules.dep | grep usbcore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the modules.dep file, what does the format <module_path>: <dependency1> [<dependency2> ...] indicate?

A

The module at <module_path> requires the listed dependency modules to be loaded first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command displays all currently loaded kernel modules?

A

lsmod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What three pieces of information does the lsmod output typically include?

A

Module name, size, and the count of other modules using it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name three things the lsmod command can help you identify.

A
  1. Conflicting modules. 2. Unnecessary modules. 3. Unauthorized modules (security threats).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command provides detailed information about a specific kernel module?

A

modinfo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What modinfo output field gives a summary of the module’s function?

A

description

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What modinfo field lists the modules that must be loaded before this one?

A

depends

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What modinfo field shows configurable options for the module?

A

parm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What modinfo field is important for verifying legal distribution rights?

A

license

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are three primary uses for the modinfo command?

A

Debugging, verifying compatibility, and understanding module behavior before making changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In the dependency example, which module must be loaded first: usb-storage or usbcore?

A

usbcore must be loaded before usb-storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the command sudo depmod do?

A

It analyzes all modules and updates the system’s dependency file (modules.dep).