ramdisk(7) — SPECIAL FILES AND DEVICES
NAME
ramdisk − RAM disk driver
DESCRIPTION
The RAMDISK module allows a block of memory to be treated as a disk.
To create a ramdisk, do the following:
(1) Define a memory region in the edt_data file for each ramdisk. edt_data(4) describes how to do this. Give each region the attribute "ramdunit=x", where x is the hexadecimal number of the ramdisk unit. If the region has the paged attribute, it must also have the lock attribute. Here is a sample ramdisk definition:
memory-region ramd0
{
id 0
memory-address 0xE00000
memory-length 0x200000
attributes ramdunit=0
}
(2) Check to be sure that the ramdisk driver declaration appears in the file edt_data. Add it if it doesn’t appear.
driver RAMDISK software
{
id 0
}
The ramdisk will be available after a new kernel is built, typically after the next reboot.
Ramdisk devices cannot be sliced. Hence, the slice number is always 7.
FILES
/dev/dsk/ramd_c0dxs7
/dev/rdsk/ramd_c0dxs7
/stand/edt_data