Kernel Modules and Device Drivers Flashcards

1
Q

What is the File Interface?

A

An abstraction to organize data into directories and files. Allows for querying data therein.

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

What is the IOCTL device?

A

Input/Output Control. Allows for users and their applications to communicate with device drivers. Can configure devices or query special files.

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

What is /proc?

A

A virtual file system that provides access to the kernel internal state. Mostly readonly. Can query statistics or process information in the kernel.

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

What is the difference between a Character Device and a Block Device?

A

A Character Device is unbuffered, and is accessed sequentially (by necessity). A Block Device provides access to data via a buffer, and can allow for random access.

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

TRUE/FALSE: The mouse is an example of a Character Device.

A

TRUE.

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

TRUE/FALSE: Terminals are an example of a Character Device.

A

TRUE.

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

TRUE/FALSE: A random number generator is an example of a Block Device.

A

FALSE: It is a character device.

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

TRUE/FALSE: A hard drive is an example of a Block Device.

A

TRUE.

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

What is DMA?

A

Direct Memory Access. Often hardware-enabled data transfer that avoids the CPU to reduce workload. Faster data transfers, but needs additional coordination with the OS.

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

Name a common use of DMA.

A

(many answers)
GPU’s, GPGPU’s, TPU’s
HDD’s, SSD’s, CSD’s
Network Interfaces
Sound Cards

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

TRUE/FALSE: DMA only allows for memory-to-memory access.

A

FALSE: DMA allows for that plus I/O-to-memory and memory-to-I/O.

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

TRUE/FALSE: Interrupts operate exclusively in hardware.

A

FALSE: Interrupts can also be handled by software.

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

What is the key factor in a GPU’s being better than a CPU in certain cases?

A

Parallel processing.

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