Kernel Module Management Flashcards

Obj 1.2 (16 cards)

1
Q

What is the analogy used to describe Kernel Modules?

A

Kernel modules are analogous to car components, enhancing functionality as needed.

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

What command is used to manually insert a kernel module without handling dependencies?

A

insmod

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

What is the main disadvantage of using the insmod command?

A

It does not handle module dependencies.

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

In the insmod example, what does $(uname -r) do?

A

It ensures compatibility by using the version of the currently running kernel.

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

What command is a higher-level tool that automatically manages module dependencies?

A

modprobe

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

Which command requires the full path to the module file (e.g., .ko)?

A

insmod

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

Which command only requires the module name?

A

modprobe

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

What modprobe flag is used to load multiple modules at once?

A

-a

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

What modprobe flag safely removes a module and its dependencies?

A

-r

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

What modprobe flag is used to force-load a module, bypassing version checks?

A

-f

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

What modprobe flag performs a dry run to show what would happen without actually loading or removing?

A

-n

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

What modprobe flag enables verbose output for detailed information?

A

-v

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

What is the command to remove a kernel module?

A

rmmod

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

What is the main caution when using the rmmod command?

A

It does not check for dependencies; removal may fail if the module is in use.

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

In the troubleshooting example, what does modprobe -r wifi_driver && modprobe -v wifi_driver do?

A

It removes the wifi_driver module and then reloads it with verbose output, which is useful for error monitoring.

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

If rmmod usb_storage fails, what are two potential reasons?

A
  1. The module is still in use by a process. 2. A device using the module (e.g., a USB drive) is still mounted.