Windows CE Object Store Windows CE name for persistent storage Provides storage for the –Registry –Databases –File System In a non-volatile portion of.

Slides:



Advertisements
Similar presentations
Devices and Drivers (Chapter 7) Khattab Alhabashi UNIX System Administration.
Advertisements

Windows XP Kernel Architecture Mike Karlsven James Farrer Jason Smith.
2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
An Overview of Palm OS n Designed for special hardware –small screen ( 160 x 160 ) –less processing power than desktop PCs –quick turnaround expected –limited.
1 File Management (a). 2 File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection.
Chapter 3: Configuring the Windows Vista Environment.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
File Management Systems
1 Case Study 2: Windows 2000 Chapter History of windows Programming windows System structure 11.4 Processes and threads in.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
1 I/O Management in Representative Operating Systems.
1 Course Outline Processes & Threads CPU Scheduling Synchronization & Deadlock Memory Management File Systems & I/O Networks, Protection and Security.
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Operating Systems.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Working with the Windows XP Registry
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Version 3 Operating System Fundamentals Module 4.
1 CS503: Operating Systems Part 1: OS Interface Dongyan Xu Department of Computer Science Purdue University.
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.
Ceng Operating Systems 11-1 Chapter 11 : Case Study - Win 2000 History of windows 2000 Programming windows 2000 System structure Processes and threads.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
Hands-On Microsoft Windows Server 2008
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 11 Case Study 2: Windows Vista Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
Protection and the Kernel: Mode, Space, and Context.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Section 3.1: Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random.
Chapter 17 Creating a Database.
CE Operating Systems Lecture 11 Windows – Object manager and process management.
1 Chapter Overview How Windows 98 Works How Windows 2000 Works Managing Windows.
1 CS 430 Database Theory Winter 2005 Lecture 16: Inside a DBMS.
Operating Systems COMP 4850/CISG 5550 File Systems Files Dr. James Money.
1 Windows 98 Ancillary Systems x The Process Scheduler provides system resources. The Windows Driver Model (WDM) allows Windows 98 and Microsoft Windows.
UNIX Files File organization and a few primitives.
NT Kernel CS Spring Overview Interrupts and Exceptions: Trap Handler Interrupt Request Levels and IRT DPC’s, and APC’s System Service Dispatching.
Source: Operating System Concepts by Silberschatz, Galvin and Gagne.
Topics Related to Attribute Values Objectives of the Lecture : To consider sorting relations by attribute values. To consider Triggers and their use for.
Processes CS 6560: Operating Systems Design. 2 Von Neuman Model Both text (program) and data reside in memory Execution cycle Fetch instruction Decode.
CE Operating Systems Lecture 17 File systems – interface and implementation.
1.4 Hardware Review. CPU  Fetch-decode-execute cycle 1. Fetch 2. Bump PC 3. Decode 4. Determine operand addr (if necessary) 5. Fetch operand from memory.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 14 Threads 2 Read Ch.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
4P13 Week 12 Talking Points Device Drivers 1.Auto-configuration and initialization routines 2.Routines for servicing I/O requests (the top half)
CIS 250 Advanced Computer Applications Database Management Systems.
Copyright © Curt Hill Operating Systems An Introductory Overview.
Device Driver Concepts Digital UNIX Internals II Device Driver Concepts Chapter 13.
Chapter 3: Relational Databases
CHAPTER 9 File Storage Shared Preferences SQLite.
Introduction to Operating Systems Concepts
Day 28 File System.
Hardware and OS Design and Layout.
Chapter Objectives In this chapter, you will learn:
Chapter 11: File System Implementation
Chapter 12: File System Implementation
Protection of System Resources
COMP 3500 Introduction to Operating Systems File Management
Structure of Processes
Windows Internals Brown-Bag Seminar Chapter 1 – Concepts and Tools
Booting Up 15-Nov-18 boot.ppt.
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
CS510 Operating System Foundations
Introduction to Operating Systems
Presentation transcript:

Windows CE Object Store Windows CE name for persistent storage Provides storage for the –Registry –Databases –File System In a non-volatile portion of RAM

Registry To centralize applicationr, user and system settings Consolidates what was done earlier with autoexec.bat, config.sys, etc. Stored as a hierarchy, with each element termed a key. Each key has a default value and several optional extra values Four hierarchies –HKEY_LOCAL_MACHINE: char. of m/c –HKEY_USERS: default user config. –HKEY_CURRENT_USER: for current user –HKEY_CLASSES_ROOT: types and properties of supported documents

Registry (contd.) RegCeateKeyEx() to create keys RegSetValueEx() to update a value of a key RegQueryValueEx() retrieves the associated type and data

Databases CE offers an integrated database not offered by other Windows versions Note that this is not really a DBMS –No SQL (direct API) –No concurrency control –No transactional notion

Terminology Volume: A collection of tables Database: One of these tables Record: One row of table Property: A column of the table Sort Order: A method to quickly access rows Each database can support upto 4 sort orders (specified at creation).

Databases are stored in a file (called volume). First mount a volume using CeMountDBVol() CeCreateDatabaseEx() to create a database CeOpenDatabaseEx() to open an existing database – can ask to be notified if someone else modifies when in use. CeWriteRecordProps() to create or update a record. Each call to CeReadRecordProps() returns the next record in the specified sort order (at open) CeSeekDatabase() to seek to a specific record – record id, matching a value, having the immediate previous value, etc.

File System Portion of object store where files reside (\Windows) Differences from normal Windows: –No security/access permissions –No notion of drives (A:, C:, etc.) – everything is accessible from “\” –No concept of current directory, always need to specify from “\” When inserting flash cards, they appear under the directory “\StorageCard1”, “\StorageCard2”, etc.

File System API CreateFile() to create files – analogous to Unix open ReadFile() and WriteFile() to read and write data from/to files. Writes are buffered and flushed to appropriate device sometime later Applications can force the writes with FlushFileBuffers() call File seeking is done with SetFilePointer() call. Can use same calls for device interfaces as well. In addition there is a DeviceIOControl() call similar to Unix ioctl().

Memory Mapped Files Allows normal memory load/store interface to files Also, allows creating shared memory Different from traditional Unix in that it increases the virtual address space of process. E.g. a process (normally 32MB) mapping a 4MB file becomes 36MB, but not all of it is contiguous

Memory Mapping API CreateFileForMapping() is done first Then the handle is passed to CreateFileMapping() which creates a file mapping object and associates it with the opened file. MapViewOfFile() maps the file in memory and returns a memory pointer to it. When two processes do this, they have created a shared memory region.

Device Drivers Native drivers –Control low level devices built-in with the CE platform (audio, battery display, keyboards …) –They can have unique APIs Stream drivers –They export the same API –They usually drive 3 rd party devices (GPS receivers, printers, etc.)

Interface between Kernel and Native Driver Event Handler (EH) Interrupt Service Handler (ISH) Kernel OAL Interrupt Service Routine (ISR) Native Driver Interrupt Service Thread (IST) Platform Dependent Driver HARDWARE

EH in kernel is first invoked. EH disables all interrupts and invokes appropriate ISR in OAL ISR performs some minimal processing and returns interrupt id to kernel ISH re-enables all but this interrupt, uses the interrupt id to signal an event on which a IST of a native driver is waiting (Event Object). IST may need to perform some hardware specific actions to process interrupt IST then notifies kernel once it is done ISH then re-enables this interrupt by calling some functions in OAL.

Stream Drivers Presents the device as being a special file Standard API regardless of the device Strict naming rules: 3 upper case letters (identifies function prefix) + single digit + colon They can be loaded/unloaded by the Device Manager.

Loading Drivers At boot time, Device Manager loads all drivers listed under HKEY_LOCAL_MACHINE\Drivers\Builtin registry key. When a device is connected, the Device Manager calls the native socket driver to obtain a Plug and Play id. This id is compared against registry entries in HKEY_LOCAL_MACHINE\Drivers\PCMCIA. If found, that driver is loaded. Else, it calls functions listed in ….\PCMCIA\Detect that are Stream Driver functions. If one of them says it can handle, then that driver is loaded. If an application attempts to open a device without driver loaded, then the application can explicitly load the driver.

Stream Interface Functions XXX_Close() XXX_Deinit() XXX_Init() XXX_IoControl() XXX_Open() XXX_PowerDown() XXX_PowerUp() XXX_Read() XXX_Seek() XXX_Write()