PatchworkOS
Loading...
Searching...
No Matches

RAM filesystem. More...

Data Structures

struct  ramfs_superblock_data_t
 Superblock private data for ramfs. More...
 
struct  ramfs_dentry_data_t
 Dentry private data for ramfs. More...
 

Macros

#define RAMFS_NAME   "ramfs"
 The name of the ramfs filesystem.
 

Functions

void ramfs_init (const boot_disk_t *disk)
 Registers the ramfs filesystem and mounts it as the root filesystem.
 

Detailed Description

RAM filesystem.

A simple in-memory filesystem thats loaded from the bootloader. All data is lost when the system is powered off or rebooted.

Macro Definition Documentation

◆ RAMFS_NAME

#define RAMFS_NAME   "ramfs"

The name of the ramfs filesystem.

Definition at line 26 of file ramfs.h.

Function Documentation

◆ ramfs_init()

void ramfs_init ( const boot_disk_t disk)

Registers the ramfs filesystem and mounts it as the root filesystem.

Parameters
diskThe boot disk from the bootloader.

Definition at line 385 of file ramfs.c.

References ERR, LOG_INFO, mount, namespace_mount(), NULL, panic(), ramfs, RAMFS_NAME, VFS_DEVICE_NAME_NONE, and vfs_register_fs().

Referenced by init_finalize().