Kernel modules Flashcards

1
Q

Display info about currently running kernel

A
uname
uname -r -info about release
uname -m -architecture (64-bit)
uname -n -pc name
uname -a -all info
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Display modules loaded in the system

A

lsmod

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

Display info about specified module

A

modinfo floppy

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

Util that is used to load and unload kernel modules

A
modprobe
remove floppy module:
modprobe -r floppy 
add floppy module back and its dependent modules if necessary:
modprobe floppy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Legacy: remove module

A

rmmod floppy

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

Legacy: insert module

A

insmod /lib/modules/$(uname -r)/kernel/drivers/block/floppy.ko.xz

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

List kernel modules dir for currently running kernel

A

ls /lib/modules/$(uname -r)/

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

Prevent specified kernel modules from loading

A
create a  file with. conf ext in dir
/etc/modprobe.d/
add blacklist word in this file + module to be prevented from loading
vim floppy-bl.conf
blacklist floppy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Generate a list of kernel dependencies

A

depmod

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