计算机系 信息处理实验室 Lecture 12 I/O System

Slides:



Advertisements
Similar presentations
Windows 2000 I/O System, Cache Manager and File Systems Computing Department, Lancaster University, UK.
Advertisements

WDM 드라이버의 기본 구조 What is WDM?
计算机系 信息处理实验室 Lecture 9 Memory Management(1)
计算机系 信息处理实验室 Lecture 3 System Mechanisms (1)
计算机系 信息处理实验室 Lecture 10 Memory Management(2)
计算机系 信息处理实验室 Understanding the Inside of Microsoft Windows Spring 陈香兰.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
计算机系 信息处理实验室 Lecture 15 File Systems
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
计算机系 信息处理实验室 Leture1 concepts and tools 2005 Spring 陈香兰.
计算机系 信息处理实验室 Lecture 8 Processes, Threads, and Jobs (2)
计算机系 信息处理实验室 Lecture 16 Networking
计算机系 信息处理实验室 Lecture 11 Security
3: OS Structures 1 OPERATING SYSTEM STRUCTURES PROCESS MANAGEMENT A process is a program in execution: (A program is passive, a process active.) A process.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Case Study: Windows 2000 Part I Will Richards CPSC 550 Spring 2001.
1 Case Study 2: Windows 2000 Chapter History of windows Programming windows System structure 11.4 Processes and threads in.
Introduction to Kernel
Computer System Overview
1 I/O Management in Representative Operating Systems.
计算机系 信息处理实验室 Lecture 14 Cache Manager
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
计算机系 信息处理实验室 Lecture 2 System architecture
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
Tel : 同济大学软件学院 UEFI 与固件程序设计.
CSE451 Introduction to Operating Systems Spring 2008 Tour of the Windows NT File Systems Gary Kimura & Mark Zbikowski.
Ceng Operating Systems 11-1 Chapter 11 : Case Study - Win 2000 History of windows 2000 Programming windows 2000 System structure Processes and threads.
计算机系 信息处理实验室 Lecture 7 Processes, Threads, and Jobs (1)
ITEC 502 컴퓨터 시스템 및 실습 Chapter 8-1: I/O Management Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Ch. 9 I/O System 발표자 : 서우석 발표일 : 2006 년 11 월 6 일.
CSC 322 Operating Systems Concepts Lecture - 25: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
A Critical Analysis of the Windows mLAN Driver Supervisor: Prof. Foss By: Shaun Miles.
© Microsoft Corporation1 Windows Kernel Internals I/O Architecture *David B. Probert, Ph.D. Windows Kernel Development Microsoft Corporation.
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
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.
Architecture Support for OS CSCI 444/544 Operating Systems Fall 2008.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
计算机系 信息处理实验室 Lecture 6 Management Mechanisms
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Operating Systems and Networks AE4B33OSS Introduction.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
A Comparative Study of the Linux and Windows Device Driver Architectures with a focus on IEEE1394 (high speed serial bus) drivers Melekam Tsegaye
Windows 2000 Course Summary Computing Department, Lancaster University, UK.
计算机系 信息处理实验室 Lecture 4 System Mechanisms (2)
Device Drivers CPU I/O Interface Device Driver DEVICECONTROL OPERATIONSDATA TRANSFER OPERATIONS Disk Seek to Sector, Track, Cyl. Seek Home Position.
A Critical Analysis of the Windows mLAN Driver
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
1 Windows NT A Distributed Architecture Windows NT A Distributed Architecture Professor: Mohamed Khalil CSE 8343 GROUP-A5 Dhaval Sanghvi Amit Sharma Ali.
4P13 Week 12 Talking Points Device Drivers 1.Auto-configuration and initialization routines 2.Routines for servicing I/O requests (the top half)
Device Driver Concepts Digital UNIX Internals II Device Driver Concepts Chapter 13.
Lecture 7 Rootkits Hoglund/Butler (Chapter 5-6). Avoiding detection Two ways rootkits can avoid detection –Modify execution path of operating system to.
Overview of Windows Driver Development Reference: us/gstart/hh/gstart/gs_intro_031j.asp.
Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Introduction to Operating Systems Concepts
I/O Management.
Introduction to Kernel
CS501 Advanced Computer Architecture
Chapter 12: File System Implementation
CSE451 I/O Systems and the Full I/O Path Autumn 2002
I/O system.
CS703 - Advanced Operating Systems
Chapter 3: Windows7 Part 2.
CPSC 457 Operating Systems
Quiz
Case Study 2: Windows History of windows 2000
I/O Systems I/O Hardware Application I/O Interface
Chapter 3: Windows7 Part 2.
CS703 - Advanced Operating Systems
Presentation transcript:

计算机系 信息处理实验室 Lecture 12 I/O System

计算机系 信息处理实验室 the Inside of Windows Contents I/O System Components I/O Data Structures Driver Loading, Initialization, and Installation I/O Processing

计算机系 信息处理实验室 the Inside of Windows I/O System Components I/O manager

计算机系 信息处理实验室 the Inside of Windows The flow of a typical I/O request

计算机系 信息处理实验室 the Inside of Windows I/O Manager The I/O manager defines the orderly framework, or model, within which I/O requests are delivered to device drivers. Packet driven I/O request packet (IRP) Flexible I/O services

计算机系 信息处理实验室 the Inside of Windows Device Drivers Types File system drivers Windows 2000 drivers Legacy drivers display drivers WDM drivers Bus drivers Function drivers Filter drivers

计算机系 信息处理实验室 the Inside of Windows user-mode drivers Virtual device drivers (VDDs) Win32 subsystem printer drivers Driver components Class drivers Port drivers Miniport drivers

计算机系 信息处理实验室 the Inside of Windows Layering of a FSD and a disk driver

计算机系 信息处理实验室 the Inside of Windows Adding a layered driver

计算机系 信息处理实验室 the Inside of Windows Structure of a Drive The I/O system drives the execution of device drivers Primary device driver routines

计算机系 信息处理实验室 the Inside of Windows Plug and Play (PnP) Manager

计算机系 信息处理实验室 the Inside of Windows Power Manager Requirement hardware must comply with ACPI specification The six system power states See table 9-2table 9-2

计算机系 信息处理实验室 the Inside of Windows System power-state transitions Sleeping waking

计算机系 信息处理实验室 the Inside of Windows I/O Data Structures File Objects Driver Objects and Device Objects I/O Request Packets I/O Completion Ports

计算机系 信息处理实验室 the Inside of Windows File Objects File Object Attributes Filename Current byte offset Share modes Open mode flags Pointer to device object Pointer to the volume parameter block (VPB) Pointer to section object pointers Pointer to private cache map

计算机系 信息处理实验室 the Inside of Windows Opening a file object

计算机系 信息处理实验室 the Inside of Windows Driver Objects and Device Objects A driver object represents an individual driver in the system. A device object represents a physical or logical device on the system and describes its characteristics

计算机系 信息处理实验室 the Inside of Windows The driver object

计算机系 信息处理实验室 the Inside of Windows I/O Request Packets IRP is where the I/O system stores information it needs to process an I/O request.

计算机系 信息处理实验室 the Inside of Windows Data structures involved in a single- layered driver I/O request

计算机系 信息处理实验室 the Inside of Windows IRP Stack Locations IRP a fixed header one or more stack locations IRP Buffer Management Buffered I/O Direct I/O Neither I/O

计算机系 信息处理实验室 the Inside of Windows I/O Completion Ports The IoCompletion Object Applications use the IoCompletion executive object, which is exported to Win32 as a completion port, as the focal point for the completion of I/O associated with multiple file handles.

计算机系 信息处理实验室 the Inside of Windows I/O completion port operation

计算机系 信息处理实验室 the Inside of Windows Driver Loading, Initialization, and Installation Explicit loading Enumeration-based loading

计算机系 信息处理实验室 the Inside of Windows The Start Value boot-start (0) system-start (1) auto-start (2) demand-start (3)

计算机系 信息处理实验室 the Inside of Windows Device Enumeration PnP manager primary bus driver device tree

计算机系 信息处理实验室 the Inside of Windows Example device tree

计算机系 信息处理实验室 the Inside of Windows Devnodes

计算机系 信息处理实验室 the Inside of Windows Driver Installation

计算机系 信息处理实验室 the Inside of Windows I/O Processing Types of I/O Synchronous I/O and Asynchronous I/O Fast I/O Mapped File I/O and File Caching Scatter/Gather I/O

计算机系 信息处理实验室 the Inside of Windows Control flow for an I/O operation

计算机系 信息处理实验室 the Inside of Windows I/O Request to a Single-Layered Driver

计算机系 信息处理实验室 the Inside of Windows Servicing an Interrupt Phrase 1

计算机系 信息处理实验室 the Inside of Windows Phrase 2

计算机系 信息处理实验室 the Inside of Windows Completing an I/O Request Phrase 1

计算机系 信息处理实验室 the Inside of Windows Phrase 2

计算机系 信息处理实验室 the Inside of Windows I/O Requests to Layered Drivers

计算机系 信息处理实验室 the Inside of Windows Completing a layered I/O request

计算机系 信息处理实验室 the Inside of Windows Queuing associated IRPs

计算机系 信息处理实验室 the Inside of Windows Completing associated IRPs

计算机系 信息处理实验室 the Inside of Windows I/O Completion Port Operation

计算机系 信息处理实验室 the Inside of Windows Synchronization