VFS API

ramfs/vfs.h

Functions

esp_err_t ramfs_vfs_register(const ramfs_vfs_conf_t *conf)

Mount an ramfs fs handle under a vfs path.

Parameters:
  • conf[in] vfs configuration

Returns:

ESP_OK if successful, ESP_ERR_NO_MEM if too many VFSes are registered

Structs

struct ramfs_vfs_conf_t

Configuration structure for the ramfs_vfs_register function.

Public Members

const char *base_path

vfs path to mount the filesystem

ramfs_fs_t *fs

the ramfs instance

size_t max_files

maximum open files