Device Management Functions



Similar documents
DEVICE DRIVERS AND TERRUPTS SERVICE MECHANISM Lesson-14: Device types, Physical and Virtual device functions

Linux Kernel Architecture

Introduction. What is an Operating System?

REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux. Lesson-12: Real Time Linux

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Have both hardware and software. Want to hide the details from the programmer (user).

Linux Driver Devices. Why, When, Which, How?

CSC 2405: Computer Systems II

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

REAL TIME OPERATING SYSTEMS. Lesson-10:

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

I/O Device and Drivers

1. Computer System Structure and Components

CS161: Operating Systems

Chapter 13. PIC Family Microcontroller

Advanced Computer Networks. Network I/O Virtualization

Operating Systems Design 16. Networking: Sockets

Digital evidence in virtual honeynets based on operating system level virtualization

CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure

Operating Systems. Module Descriptor

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

COS 318: Operating Systems. I/O Device and Drivers. Input and Output. Definitions and General Method. Revisit Hardware

Input / Output and I/O Strategies

System Calls and Standard I/O

OPERATING SYSTEMS STRUCTURES

A Design of Video Acquisition and Transmission Based on ARM. Ziqiang Hao a, Hongzuo Li b

UNISOL SysAdmin. SysAdmin helps systems administrators manage their UNIX systems and networks more effectively.

Operating System Structure

Implementing Network Attached Storage. Ken Fallon Bill Bullers Impactdata

Devices and Device Controllers

Embedded Software development Process and Tools: Lesson-4 Linking and Locating Software

Chapter 11 I/O Management and Disk Scheduling

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

The Lagopus SDN Software Switch. 3.1 SDN and OpenFlow. 3. Cloud Computing Technology

Operating Systems. Lecture 03. February 11, 2013

Programming Interface. for. Bus Master IDE Controller. Revision 1.0

Computer Organization & Architecture Lecture #19

System Calls Related to File Manipulation

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

Chapter 11 I/O Management and Disk Scheduling

Example of Standard API

Chapter 3 Operating-System Structures

EUCIP - IT Administrator. Module 3 LAN and Network Services. Version 2.0

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Chapter 2 System Structures

PARALLELS SERVER BARE METAL 5.0 README

Configure Cisco Emergency Responder Disaster Recovery System

Red Hat Linux Internals

EUCIP - IT Administrator. Module 2 Operating Systems. Version 2.0

Chapter 8 Objectives. Chapter 8 Operating Systems and Utility Programs. Operating Systems. Operating Systems. Operating Systems.

OPTIMIZE DMA CONFIGURATION IN ENCRYPTION USE CASE. Guillène Ribière, CEO, System Architect

Virtual Machines. COMP 3361: Operating Systems I Winter

WinDriver 5.22 User s Guide. Jungo Ltd

What is involved in input/output? How does the operating system manage I/O?

OPERATING SYSTEM SERVICES

Analysis of Open Source Drivers for IEEE WLANs

ESM s management across multi-platforms eliminates the need for various account managers.

Lesson-3 CASE STUDY OF AN EMBEDDED SYSTEM FOR SMART CARD

VIRTUOZZO TM FOR LINUX 2.6.1

CITIZEN OPOS DRIVER 1.8 Setup Guide. 10/03/29 Rev 1.09

Distributed Block-level Storage Management for OpenStack

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Overview of Operating Systems Instructor: Dr. Tongping Liu

Networks. Inter-process Communication. Pipes. Inter-process Communication

Operating System Tutorial

PRODUCTIVITY ESTIMATION OF UNIX OPERATING SYSTEM

AS cloud computing becomes widespread, there are

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

EUCIP IT Administrator - Module 2 Operating Systems Syllabus Version 3.0

Database Administration with MySQL

BHyVe. BSD Hypervisor. Neel Natu Peter Grehan

Guardian: Hypervisor as Security Foothold for Personal Computers

Virtualization Technology. Zhiming Shen

Freescale Semiconductor, I

OSes. Arvind Seshadri Mark Luk Ning Qu Adrian Perrig SOSP2007. CyLab of CMU. SecVisor: A Tiny Hypervisor to Provide

Operating System Structures

SYSTEM ecos Embedded Configurable Operating System

Process Description and Control william stallings, maurizio pizzonia - sistemi operativi

1B11 Operating Systems. Input/Output and Devices

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

USB 2.0 Flash Drive User Manual

Fundamentals Curriculum HAWQ

11. Oracle Recovery Manager Overview and Configuration.

Computer Systems Structure Input/Output

4.10 Maintain Database

Intelligent RS-485 I/O expansion unit: RU-87Pn Series

73S1215F, 73S1217F Device Firmware Upgrade Host Driver/Application Development User s Guide April 27, 2009 Rev UG_12xxF_029

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Operating Systems and Networks

FRONT FLYLEAF PAGE. This page has been intentionally left blank

CHAPTER 1: OPERATING SYSTEM FUNDAMENTALS

Kernel comparison of OpenSolaris, Windows Vista and. Linux 2.6

Computers: Tools for an Information Age

Xinying Wang, Cong Xu CS 423 Project

POSIX. RTOSes Part I. POSIX Versions. POSIX Versions (2)

Performance Navigator Installation

Command Line Interface Specification Linux Mac

Transcription:

REAL TIME OPERATING SYSTEMS Lesson-6: Device Management Functions 1

1. Device manager functions 2

Device Driver ISRs Number of device driver ISRs in a system, Each device or device function having s a separate driver, which is as per its hardware 3

Device manager Software that manages the device drivers of each device Provides and executes the modules for managing the devices and their drivers ISRs. Effectively operates and adopts appropriate strategy for obtaining optimal performance for the devices. Coordinates between application-process, driver and device-controller. 4

Device manager Process sends a request to the driver by an interrupt; and the driver provides the actions by executing an ISR. Device manager polls the requests at the devices and the actions occur as per their priorities. Manages IO Interrupts (requests) queues. 5

Device manager Creates an appropriate kernel interface and API and that activates the control register specific actions of the device. [Activates device controller through the API and kernel interface.] 6

Device manager Manages the physical as well as virtual devices like the pipes and sockets through a common strategy. 7

Device management has three standard approaches Three types of device drivers: (i) Programmed I/Os by polling from each device its the service need from each device. Interrupt(s) from the device drivers device- ISR and (iii) Device uses DMA operation used by the devices to access the memory. Most common is the use of device driver ISRs 8

Device Manager Functions Device Detection and Addition Device Deletion Device Allocation and Registration Detaching and Deregistration 9

Device Manager Functions Restricting Device to a specific process Device Sharing Device control Device Access Management Device Buffer Management Device Queue, Circular-queue or blocks of queues Management 10

Device Manager Functions Device drivers updating and upload of new device-functions Backup and restoration 11

char devices and block devices Device Types 12

2. Set of Command Functions for the Device Management 13

create open write read ioctl close and delete Commands for Device 14

ioctl Command for Device (i) Accessing specific partition information (ii) Defining commands and control functions of device registers (iii) IO channel control 15

Three arguments in ioctl ( ) First Argument: Defines the chosen device and its function by passing as argument the device descriptor (a number), for example, fd or sfd Example is fd = 1 for read, fd = 2 for write. Second Argument: Defines the control option or uses option for the IO device, for example, baud rate or other parameter optional function Third Argument: Values needed by the defined function are at the third argument 16

Example Status = ioctl (fd, FIOBAUDRATE, 19200) is an instruction in RTOS VxWorks. fd is the device descriptor (an integer returned when the device is opened) FIOBAUDRATE is the function that takes value = 19200 from the argument. This at configures the device for operation at 19200-baud rate. 17

3. Device Driver ISR functions 18

ISR functions intlock ( ) to disable device-interrupts systems, intunlock ( ) to enable device-interrupts, intconnect ( ) to connect a C function to an interrupt vector Interrupt vector address for a device ISR points to its specified C function. intcontext ( ) finds whether interrupt is called when an ISR was in execution 19

4. Unix OS functions 20

UNIX Device driver functions Facilitates that for devices and files have an analogous implementation as far as possible. open ( ), close ( ), read ( ), write ( ) functions analogous to a file open, close, read and write functions. 21

APIs and kernel interfaces in BSD (Berkley sockets for devices) open, close, read write 22

in-kernel commands (i) select ( ) to check whther read/write will succeed and then select (ii) ioctl ( ) (iii) stop ( ) to cancel the output activity from the device. (iv) strategy ( ) to permit a block read or write or character read or write 23

Summary 24

We learnt Device Manager initializes, controls, and drives the physical devices and virtual devices of the system. Main classes of devices are char devices and block devices. Device driver functions may be similar to file functions, open, read, lseek, write and close 25

End of Lesson 6 of Chapter 8 26