XenevaOS
Loading...
Searching...
No Matches
Functions
ext2file.c File Reference
#include <Fs/vfs.h>
#include <Fs/vdisk.h>
#include <Fs/Ext2/ext2file.h>
#include <Fs/Ext2/ext2dir.h>
#include <Fs/Ext2/ext2.h>
#include <string.h>
#include <Mm/pmmngr.h>
#include <aucon.h>
#include <_null.h>
#include <Mm/kmalloc.h>
Include dependency graph for ext2file.c:

Functions

void Ext2FlushSuperblock (Ext2Fs *fs)
 
void Ext2FlushBgdt (Ext2Fs *fs)
 
uint32_t Ext2AllocBlock (Ext2Fs *fs)
 
int Ext2InodeWrite (Ext2Fs *fs, uint32_t inode_num, Ext2Inode *inode)
 
AuVFSNode * Ext2CreateFile (AuVFSNode *parent, char *name)
 
int Ext2Close (AuVFSNode *fsys, AuVFSNode *file)
 
int Ext2Unlink (AuVFSNode *parent, AuVFSNode *file)
 
int Ext2Rename (AuVFSNode *old_parent, char *old_name, AuVFSNode *new_parent, char *new_name)
 
size_t Ext2Write (AuVFSNode *node, AuVFSNode *file, uint64_t *buffer, uint32_t length)
 

Function Documentation

◆ Ext2AllocBlock()

uint32_t Ext2AllocBlock ( Ext2Fs *  fs)

◆ Ext2Close()

int Ext2Close ( AuVFSNode *  fsys,
AuVFSNode *  file 
)

◆ Ext2CreateFile()

AuVFSNode * Ext2CreateFile ( AuVFSNode *  parent,
char *  name 
)

◆ Ext2FlushBgdt()

void Ext2FlushBgdt ( Ext2Fs *  fs)

◆ Ext2FlushSuperblock()

void Ext2FlushSuperblock ( Ext2Fs *  fs)

◆ Ext2InodeWrite()

int Ext2InodeWrite ( Ext2Fs *  fs,
uint32_t  inode_num,
Ext2Inode *  inode 
)

◆ Ext2Rename()

int Ext2Rename ( AuVFSNode *  old_parent,
char *  old_name,
AuVFSNode *  new_parent,
char *  new_name 
)

◆ Ext2Unlink()

int Ext2Unlink ( AuVFSNode *  parent,
AuVFSNode *  file 
)

◆ Ext2Write()

size_t Ext2Write ( AuVFSNode *  node,
AuVFSNode *  file,
uint64_t *  buffer,
uint32_t  length 
)

Ext2Wrtie – writes data to a file in the ext2 filesystem

Parameters
node– the filesystem node
file– the file node to write to
buffer– the buffer to store write data
length– the number of bytes to write