CSI 400/500 Operating Systems Spring 2009 Lecture #14 – Device Management and Drivers Monday, March 23 rd, 2009.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

Chapter 6 I/O Systems.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Operating-System Structures
0 - 0.
Addition Facts
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
Chapter 5 Input/Output 5.1 Principles of I/O hardware
INFORMATION TECHNOLOGY, THE INTERNET, AND YOU
Mehdi Naghavi Spring 1386 Operating Systems Mehdi Naghavi Spring 1386.
Interactive lesson about operating system
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
Device Management Ankur Saggar Nitin Golait Jason Foos Adam Estabrook.
Device Drivers. Linux Device Drivers Linux supports three types of hardware device: character, block and network –character devices: R/W without buffering.
I/O and Networking Fred Kuhns
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
1 Operating Systems Input/Output Management. 2 What is the I/O System A collection of devices that different sub- systems of a computer use to communicate.
Test on Input, Output, Processing, & Storage Devices
§4.4 Input and Output Devices
I/O Systems.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
OS Components and Structure
Database System Concepts and Architecture
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating System.
Processes Management.
EEE 435 Principles of Operating Systems Structure of I/O Software Pt II (Modern Operating Systems & 5.3.4)
Operating System Structures
Addition 1’s to 20.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Fall 2006.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
1 I/O Management in Representative Operating Systems.
CSI 400/500 Operating Systems Spring 2009 Lecture #2 – Functional Parts of an Operating System Monday January 23, 2009.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Device Management. Serial Port Serial Device Serial Device Memory CPU Printer Terminal Modem Mouse etc.
Process Management A process is a program in execution. It is a unit of work within the system. Program is a passive entity, process is an active entity.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
University of Management & Technology 1 Operating Systems & Utility Programs.
CSC 322 Operating Systems Concepts Lecture - 25: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Chapter 8: Operating Systems and Utility Programs Catherine Gifford Dan Falgares.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
Operating Systems Lecture 1 Jinyang Li. Class goals Understand how an OS works by studying its: –Design principles –Implementation realities Gain some.
Parts of the Computer System
12/8/20151 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Looking Inside the Computer System
Computer main parts HARDWARE It corresponds to all physical and tangible parts of a computer: your electrical, electronic, electromechanical and mechanical.
Computer Based Systems Stage 2 Information Technology Studies Computer & Communication Systems.
Operating Systems, Spring 2003 Local File Systems in UNIX Ittai Abraham Zinovi Rabinovich (recitation)
CSC190 Introduction to Computing Operating Systems and Utility Programs.
BABCA Software Operating Systems (OS) aka Systems Software A set of instructions that coordinate all the activities among computer hardware resources.
Fall 2000M.B. Ibáñez Lecture 26 I/O Systems II. Fall 2000M.B. Ibáñez Application I/O Interface I/O system calls encapsulate device behaviors in generic.
I/O Software CS 537 – Introduction to Operating Systems.
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
Introduction to comp. and prog. CS 101 G 964
Operating System Review
Operating System Review
CS703 - Advanced Operating Systems
Presentation transcript:

CSI 400/500 Operating Systems Spring 2009 Lecture #14 – Device Management and Drivers Monday, March 23 rd, 2009

2 Device Manager Handles communication between Operating System and external devices Contains collection of device drivers Contains library of interrupt handlers for device conditions

3 Device Driver Library of functions controlling access to device Contains functions like read, write, open, close, seek, ping, pipe, etc. Involved through system calls

Device Independence Standard set of operations common to all devices If no device specified, OS determines best available device to perform operation 4

Reconfigurable Device Drivers Addition of device without restarting operating system MS Windows has this capacity when it senses new hardware You install a driver and its added to the library automatically 5

6 Buffering Maintaining data in repository before needed Input buffers facilitate speedier processing Output buffers prevents suspends for slow transfer rate

7 Multiple Buffer Methods Double buffer The device has one buffer while the device driver has another Allows for data passing back and forth without interference Circular buffers Multiple buffers for each device and driver Prevents backlog of data Order of transmission becomes important

8 Device Types Device Managers catalog drivers based upon type Communication devices We ll discuss these further in the networking topic Storage devices Sequential access: ex. magnetic tape Random access: ex. disk I/O device Keyboards, mouse, printers, scanners have own drivers

Device Types, cont Communication Devices Transfer data between computer and external computer Requires defined interface Uses a mutually-understood protocol Well discuss such protocols later in the course 9

10 Driver Optimization When writing a device driver, consider best means to access data: 1 st Come, 1 st Served (FCFS) Shortest Seek Time (SST) Scan/Look – access in direction

11 Linux Device Management Devices signified by major and minor numbers Major number is device type Minor number is specific device Device drivers activated with _init() Driver interface recognized by operating system by register_()

12 Linux I/O Driver functions Open and close Read, readdir, and write Flush and release (for data buffers) Seek Map Sync lock

Linux Device Models C++ abstract classes Based on commonalities among drivers Model types: Udev Sysfs Kobject Device classes 13

Udev User device in /dev Gave device management to user space Used to be managed by dynamic node creation That was more tedious, requiring interaction between kernel and device driver 14

Udev set-up Uses series of daemons and utilities Has rules that can be constructed to ease interface with devices Typically used for direct-access auxiliary storage devices like CD-ROM drives or flash drives 15

Sysfs User space copy of kernels device model File system for device model interfaces Contains file descriptors and device driver specifications 16

Kobjects Data abstraction of device properties Things like usage counts, parameters, and object type Main fields: Kref : maintains reference count Kset pointer Kobj_type 17

Device classes Class inheritance chain of device drivers Top level classes: Bus Class Device Devices are categorized as input, output, and data 18

Plugged devices Coldplugged Devices that were connected at system boot time Hotplugged Devices installed since boot Device drivers considered on the fly Not stored in same directory Maintained as interrupt processing 19