20091103 - Device Drivers A device driver is the portion of...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Device Drivers A device driver is the portion of an operating system that is concerned with the control of a particular kind of device. Responsibilities: Identifying and configuring the device on system startup. Queueing and scheduling requests originating from user processes and the OS kernel. Device-dependent calculations, such as translating logical block numbers to head/track/sector coordinates. Servicing device interrupts. Device Driver Organization Device drivers typically consist of three main sections: Initialization Called on system startup. Initializes data structures used by the driver. Resets device hardware to a known state. Installs interrupt handler and enables device interrupts. Bottom Half Consists of interrupt service routine and related code. Called as a result of a device interrupt. Runs on behalf of the device , not the current user process. Cannot block. Runs at elevated processor priority level (interrupts masked). Must perform service as quickly as possible, then return. Top Half Routines that interface with the upper layers of the OS....
View Full Document

Page1 / 17

20091103 - Device Drivers A device driver is the portion of...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online