Skip to content

Struct SYN_VfsOps

ClassList > SYN_VfsOps

VFS operations structure. Implement these for your filesystem (e.g. LittleFS).

  • #include <syn_vfs.h>

Public Attributes

Type Name
int(* close
int(* closedir
int(* mkdir
int(* open
int(* opendir
int(* read
int(* readdir
int(* rename
int32_t(* seek
int(* stat
int32_t(* tell
int(* unlink
int(* write

Public Attributes Documentation

variable close

int(* SYN_VfsOps::close) (SYN_VfsFile *file);

Close a file


variable closedir

int(* SYN_VfsOps::closedir) (SYN_VfsDir *dir);

Close a directory


variable mkdir

int(* SYN_VfsOps::mkdir) (const char *path, void *fs_data);

Create a directory


variable open

int(* SYN_VfsOps::open) (SYN_VfsFile *file, const char *path, int flags, void *fs_data);

Open a file


variable opendir

int(* SYN_VfsOps::opendir) (SYN_VfsDir *dir, const char *path, void *fs_data);

Open a directory


variable read

int(* SYN_VfsOps::read) (SYN_VfsFile *file, void *buf, size_t len);

Read from a file


variable readdir

int(* SYN_VfsOps::readdir) (SYN_VfsDir *dir, SYN_VfsDirEnt *ent);

Read directory entry


variable rename

int(* SYN_VfsOps::rename) (const char *old_path, const char *new_path, void *fs_data);

Rename a file


variable seek

int32_t(* SYN_VfsOps::seek) (SYN_VfsFile *file, int32_t offset, int whence);

Seek in a file


variable stat

int(* SYN_VfsOps::stat) (const char *path, SYN_VfsDirEnt *ent, void *fs_data);

Stat a file or directory


variable tell

int32_t(* SYN_VfsOps::tell) (SYN_VfsFile *file);

Get file position


int(* SYN_VfsOps::unlink) (const char *path, void *fs_data);

Delete a file


variable write

int(* SYN_VfsOps::write) (SYN_VfsFile *file, const void *buf, size_t len);

Write to a file



The documentation for this class was generated from the following file src/syntropic/storage/syn_vfs.h