RAM file system

Every BlackBerry 10 OS system also provides a simple RAM-based file system that allows read/write files to be placed under /dev/shmem.

Note: Note that /dev/shmem isn't actually a file system. It's a window onto the shared memory names that happens to have some file system-like characteristics.

This RAM file system finds the most use in tiny embedded systems where persistent storage across reboots isn't required, yet where a small, fast, temporary-storage file system with limited features is called for.

The file system comes for free with procnto and doesn't require any setup. You can simply create files under /dev/shmem and grow them to any size (depending on RAM resources).

Although the RAM file system itself doesn't support hard or soft links or directories, you can create a link to it by using process-manager links. For example, you could create a link to a RAM-based /tmp directory:

ln -sP /dev/shmem /tmp

This tells procnto to create a process manager link to /dev/shmem known as /tmp. Application programs can then open files under /tmp as if it were a normal file system.

Note: To minimize the size of the RAM file system code inside the process manager, this file system specifically doesn't include big file system features such as file locking and directory creation.