RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

FileSwitch Overview

Programmer's Reference Manuals
» Part 4 – Using Filing Systems
» FileSwitch
» Overview

Overview

FileSwitch is a module that is at the heart of all filing systems in RISC OS. It provides a common set of functions that is used by all filing systems. It only provides the parts of these services that are device-independent.

Any services that are device-specific are not provided by FileSwitch, but by separate modules.

Purpose of FileSwitch

Using a predefined interface, it notifies filing systems when they must do certain actions. It switches between currently active filing systems and keeps the state of each of them.

When filing systems are initialised they inform FileSwitch of three important pieces of information.

  1. Their name
  2. Where to find the routines for controlling the hardware
  3. Special actions that they can perform

Adding Filing Systems

Filing systems can be added to the Operating System easily by adding the relevant module to the system. As FileSwitch provides much of the common functionality, the filing system modules must provide the remaining functionality.

More detailed information on adding a filing system can be found in the Writing A Filing System? section.

Data Format

The data format of a filing system is not defined by the FileSwitch module. It only specifies what the user interface must look like.

Revised on January 3, 2010 17:12:54 by GavinWraith (26)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: FileSwitch

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys