Chap8 Devices and UDEV Flashcards

1
Q

udev

A

device manager for discovering hardware and peripheral devices both during system boot, and later when they are connected to the system.
- It is the successor of devfs and hotplug.

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

device nodes

A

created automatically and then used by apps and o/s subsystems to communicate with and transfer data to and from devices

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

Character (‘c’) Device

A

Driver communicates by sending and receiving single characters (bytes, octes) IE. serial ports, sound cards

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

Block (‘b’) Device

A

Driver communicates by sending entire blocks of data IE. hard disks, USB cameras

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

Character and Block devices have filesystem entries associated with them; which devices do not?

A

Network devices.
These devices work by transmitting and receiving packets, which must be constructed by breaking up streams of data and reassembled

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

device driver

A

may manage multiple device nodes, which are normally placed in the /dev directory.

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

Major and Minor

A

numbers identify the driver associated with the device. 179 = major 0,1,2=minor
ryan@s6261-pi3:/lib/modules$ ls -l /dev/mmcblk0*
brw-rw—- 1 root disk 179, 0 Feb 11 2016 /dev/mmcblk0
brw-rw—- 1 root disk 179, 1 Feb 11 2016 /dev/mmcblk0p1
brw-rw—- 1 root disk 179, 2 Feb 11 2016 /dev/mmcblk0p2
The minor number is used only by the device driver to differentiate between the different devices it my control. IE. 1 and 2 HDD partition

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

The u in udev stands for?

A

user, and indicates that most of the work of creating, removing, and modifying device nodes is done in user-space

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

Persistent Device Naming?

A

names need not depend on the order of device connection or plugging in. Controlled by udev rules

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

library which allows access to information about the devices?

A

libudev

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

2 daemons that manages the /dev directory?

A

udevd

systemd-udevd

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

utility for control and diagnostics?

A

udevadm

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

/etc/udev/udev.conf

A

the main config file contains information such as where to place device nodes, default permissions and ownership. (Mostly empty file on new systems)

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

/etc/udev/rules.d

A

rules directory for device naming. IE. 30-usb.rules

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

udevadm info command to check HDD

A

$ sudo udevadm info /dev/sda

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