www.riscos.com Technical Support: |
|
RamFS is the RAM Filing System. It is a module that, together with FileSwitch and FileCore, provides a RAM-based filing system.
Most of the facilities that you will use with RamFS are in fact provided by FileCore and FileSwitch, and you should read the chapters on those modules (on FileSwitch and FileCore respectively) in conjunction with this one.
RamFS is a module that provides the hardware-dependent part of a RAM-based filing system. It uses FileCore, and so conforms to the standards for a module that does so; see the chapter entitled FileCore for details.
It provides:
Except for the low-level entry points and routines (which are for the use of FileCore only) all of these are described below.
See FileCore_DiscOp
See FileCore_DiscOp
Interrupt status is undefined
Fast interrupts are enabled
Processor is in SVC mode
Not defined
This SWI calls FileCore_DiscOp, after first setting R8 to point to the FileCore instantiation private word for RamFS.
This call is functionally identical to FileCore_DiscOp.
None
See FileCore_Drives
See FileCore_Drives
Interrupt status is undefined
Fast interrupts are enabled
Processor is in SVC mode
Not defined
This SWI calls FileCore_Drives, after first setting R8 to point to the FileCore instantiation private word for RamFS.
This call is functionally identical to FileCore_Drives.
None
Interrupt status is undefined
Fast interrupts are enabled
Processor is in SVC mode
Not defined
This SWI calls FileCore_FreeSpace, after first setting R8 to point to the FileCore instantiation private word for RamFS.
This call is functionally identical to FileCore_FreeSpace.
None
See FileCore_DescribeDisc (FileCore_FreeSpace)
Interrupt status is undefined
Fast interrupts are enabled
Processor is in SVC mode
Not defined
This SWI calls FileCore_DescribeDisc (FileCore_FreeSpace), after first setting R8 to point to the FileCore instantiation private word for RamFS.
This call is functionally identical to FileCore_DescribeDisc.
FileCore_DescribeDisc (FileCore_FreeSpace)
None
Sets the configured amount of memory reserved for the RAM filing system
*Configure RamFSSize mK|n
mK - number of kilobytes of memory reserved
n - number of pages of memory reserved; n 127
*Configure RamFsSize sets the configured amount of memory reserved for the RAM Filing System to use (when the RAMFS module is present) after the next hard reset. The default value is 0, which disables the RAM filing system.
*Configure RamFSSize 128K
None
None
*Ram
None
*Ram selects the RAM Filing System as the filing system for subsequent operations. Remember that it is not necessary to switch filing systems if you use the full pathnames of objects. For example, you can refer to NetFS objects (on a file server, say) when RamFS is the current filing system.
Memory must have previously been reserved for the RAM filing system; the simplest ways to do so are to use the command *Configure RamFSSize, or to use the Task Manager from the desktop.
*Ram