GitOS
Loading...
Searching...
No Matches
MemoryFS.cpp File Reference
#include "MemoryFS.hpp"
#include <common/assert.h>
#include <common/status.h>
#include <memory/memory.h>

Functions

int memory_close (void *data)
void * memory_open (void *data, struct path_part *path, FILE_MODE mode)
int memory_read (void *private_fs, void *desc, uint32_t size, uint32_t nmemb, char *out)
int memory_write (void *private_fs, void *desc, uint32_t size, uint32_t nmemb, char *in)
int memory_seek (void *desc, uint32_t offset, FILE_SEEK_MODE seek_mode)
int memory_stat (void *desc, file_stat *stat)
int memory_resolve (struct disk *disk)

Function Documentation

◆ memory_close()

int memory_close ( void * data)

References assert_not_reached, and data.

◆ memory_open()

void * memory_open ( void * data,
struct path_part * path,
FILE_MODE mode )

References data.

◆ memory_read()

int memory_read ( void * private_fs,
void * desc,
uint32_t size,
uint32_t nmemb,
char * out )

References fs, and size.

◆ memory_resolve()

int memory_resolve ( struct disk * disk)

◆ memory_seek()

int memory_seek ( void * desc,
uint32_t offset,
FILE_SEEK_MODE seek_mode )

References fs, and offset.

◆ memory_stat()

int memory_stat ( void * desc,
file_stat * stat )

◆ memory_write()

int memory_write ( void * private_fs,
void * desc,
uint32_t size,
uint32_t nmemb,
char * in )

References fs, and size.