Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon System 7.0

View Source Code:

Download Sample (“RAMDisk.zip”, 46.2K)
Download Sample (“RAMDisk.dmg”, 103.7K)



Description

RAMDisk is a sample demonstrating how to write a simple Mac OS block device driver, in this case a RAM disk. It also demonstrates how to bundle a system extension (INIT), driver (DRVR) and control panel (cdev) in one file, to achieve maximum functionality while minimising the number of items in the System Folder. This sample is a control panel, which installs a RAM disk. It compiles using Metrowerks C and is written almost entirely in C, along with a small assembly language DRVR header. Requirements: System 7.0 Keywords: disk device driver, RAM disk, Driver Gestalt, INIT, cdev, DRVR, control panel, RAMDisk

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.