UbixOS  2.0
directory.c File Reference
#include <ubixfs/ubixfs.h>
#include <vfs/file.h>
#include <vfs/mount.h>
#include <lib/kmalloc.h>
#include <lib/kprintf.h>
#include <string.h>
Include dependency graph for directory.c:

Go to the source code of this file.

Functions

int addDirEntry (struct directoryEntry *dir, fileDescriptor_t *fd)
 
dirList_t ubixFSLoadDir (char *data)
 
int ubixFSmkDir (char *directory, fileDescriptor_t *fd)
 

Function Documentation

◆ addDirEntry()

int addDirEntry ( struct directoryEntry dir,
fileDescriptor_t fd 
)

Definition at line 64 of file directory.c.

References kmalloc(), kprintf(), memcpy(), fileDescriptor::offset, readUbixFS(), fileDescriptor::size, and writeUbixFS().

Referenced by ubixFSmkDir().

Here is the call graph for this function:

◆ ubixFSLoadDir()

dirList_t ubixFSLoadDir ( char *  data)

Definition at line 39 of file directory.c.

References directoryList::dirName, kmalloc(), and sprintf().

Here is the call graph for this function:

◆ ubixFSmkDir()