OS topic 13 – Input/output Flashcards
What is a device driver?
A device driver is a piece of s_________ that allows your computer’s operating system to communicate and work with hardware devices.
It serves as a t__________ between the __________________ and the specific hardware, helping them understand each other.
software
translator
operating system
Device Drivers
When you connect a new hardware device to your computer, like a printer or a graphics card, the device driver enables the operating system to s_____ and r_______ data to and from that device.
send and receive
Device Drivers
True or false
Without device drivers, your computer wouldn’t be able to use or control the connected hardware properly.
True
Device Drivers - Problem
Device drivers run in k_______ mode with access to c_______ operating system data; if a driver has b______, then it may well crash the entire system.
kernel mode
critical OS data
bugs
Device Drivers - Problem
Why might a commercial OS may restrict installation to drivers that have been appropriately signed after passing thorough testing.
To avoid damage to their reputation.
As mentioned earlier, a buggy driver can crash the entire system!!!
Bus interfaces
What is a bus?
A bus is an i___________ to which several devices can be connected at the same time.
interface
Bus interfaces
What are ‘data transfer protocols’
Data transfer protocols are sets of rules and conventions that define how data is e___________ between devices or systems over a n__________.
exchanged
network
Bus interfaces
What data transfer protocols are usually used by buses?
There are many, but one example is
PCI (P___________ C__________ I_____________):
PCI is a standard bus protocol used for communication between internal components in a computer, such as graphics cards, network cards, and storage devices. It supports high-speed data transfer.
Peripheral Component Interconnect
Bus Interfaces
A bus is an interface to which several devices can be connected at the same time; this requires s_______________ data transfer protocols and a way of identifying different devices.
standardised
Bus Interfaces
The data transfer protocols are implemented through a s_____ of software routines.
stack
Bus Interfaces
What is meant by ‘a stack of software routines’?
A “stack of software routines” typically refers to a collection or s________ of software routines, where each routine represents a specific set of instructions or operations that perform a particular task.
The term “stack” is often used metaphorically to describe the o__________ or arrangement of these routines in a h___________ manner.
sequence
organisational
hierarchical manner
Bus Interfaces
Bus-connected devices need to i_____________ themselves so that they are treated appropriately.
USB, for example, allows each peripheral to describe itself to the host computer when first plugged in.
identify themselves
Bus Interfaces
True or false
An example of how the device describes itself could be: Audio, video, etc.
True
Bus Interfaces
There is also a configuration phase where for example the host computer and peripheral device negotiate d_____ rates and, if necessary, a specialised driver is located and loaded into the k______.
data rates
kernel
Bus Interfaces
True or false?
A bus such as USB, as well being used to connect devices, must also be thought of as an I/O device in its own right.
True