ApertureOS
Functions | Variables
filesystem.c File Reference
#include "filesystem.h"
#include "priv_filesystem.h"
#include "utils/common.h"
#include "ext2/ext2.h"
Include dependency graph for filesystem.c:

Functions

uint32_t filesystem_Initialize ()
 
uint8_t filesystem_messageHandler (Message *msg)
 
void Filesystem_Setup (void)
 
UID Filesystem_OpenFile (const char *filename, int flags, int perms)
 
uint8_t Filesystem_ReadFile (UID id, uint8_t *buffer, size_t size)
 
uint8_t Filesystem_CloseFile (UID fd)
 
uint64_t Filesystem_SeekFile (UID fd, uint64_t offset, int whence)
 
uint8_t Filesystem_DeleteFile (const char *file)
 
uint8_t Filesystem_RenameFile (const char *orig_name, const char *new_name)
 
UID Filesystem_OpenDir (const char *dirname)
 
uint8_t Filesystem_ReadDir (UID dd, Filesystem_DirEntry *dir)
 
uint8_t Filesystem_CloseDir (UID fd)
 
uint8_t Filesystem_MakeDir (const char *path)
 
uint8_t Filesystem_DeleteDir (const char *path)
 
uint8_t Filesystem_Close (UID fd)
 
UID Filesystem_RegisterDescriptor (const char *target, ReadFunc *read, WriteFunc *write, SupportedFilesystems fs)
 
uint8_t Filesystem_UnregisterDescriptor (UID id)
 
void * Filesystem_FindDescriptorFromPath (const char *path)
 
void * Filesystem_FindDescriptorFromUID (const UID id)
 

Variables

SystemDatafilesys_sys = NULL
 
FileDescriptor * descriptors = NULL
 
FileDescriptor * lastDescriptor = NULL
 
Filesystem_Driverfs_drivers = NULL
 
Filesystem_DriverlastDriver = NULL
 
bool initialized = FALSE
 

Function Documentation

uint8_t Filesystem_Close ( UID  fd)
uint8_t Filesystem_CloseDir ( UID  fd)
uint8_t Filesystem_CloseFile ( UID  fd)
uint8_t Filesystem_DeleteDir ( const char *  path)
uint8_t Filesystem_DeleteFile ( const char *  file)
void* Filesystem_FindDescriptorFromPath ( const char *  path)
void* Filesystem_FindDescriptorFromUID ( const UID  id)
uint32_t filesystem_Initialize ( void  )
uint8_t Filesystem_MakeDir ( const char *  path)
uint8_t filesystem_messageHandler ( Message msg)
UID Filesystem_OpenDir ( const char *  dirname)
UID Filesystem_OpenFile ( const char *  filename,
int  flags,
int  perms 
)
uint8_t Filesystem_ReadDir ( UID  dd,
Filesystem_DirEntry dir 
)
uint8_t Filesystem_ReadFile ( UID  id,
uint8_t *  buffer,
size_t  size 
)
UID Filesystem_RegisterDescriptor ( const char *  target,
ReadFunc read,
WriteFunc write,
SupportedFilesystems  fs 
)
uint8_t Filesystem_RenameFile ( const char *  orig_name,
const char *  new_name 
)
uint64_t Filesystem_SeekFile ( UID  fd,
uint64_t  offset,
int  whence 
)
void Filesystem_Setup ( void  )
uint8_t Filesystem_UnregisterDescriptor ( UID  id)

Variable Documentation

FileDescriptor* descriptors = NULL
SystemData* filesys_sys = NULL
Filesystem_Driver* fs_drivers = NULL
bool initialized = FALSE
FileDescriptor * lastDescriptor = NULL
Filesystem_Driver * lastDriver = NULL