XenevaOS
Loading...
Searching...
No Matches
Functions
ext2file.h File Reference
#include <Fs/vdisk.h>
#include <Fs/Ext2/ext2.h>
Include dependency graph for ext2file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

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 
)

◆ 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