IBNOS
Functions | Variables
filesystem.c File Reference
#include <process/filesystem.h>
#include <process/object.h>
#include <memory/allocator.h>
#include <console/console.h>
#include <util/list.h>
#include <util/util.h>
Include dependency graph for filesystem.c:

Go to the source code of this file.

Functions

struct directorydirectoryCreate (struct directory *parent, char *name, uint32_t nameLength)
 Creates a new kernel directory object. More...
 
struct filefileCreate (struct directory *parent, char *name, uint32_t nameLength, uint8_t *staticBuffer, uint32_t staticSize)
 Creates a new kernel file object. More...
 
struct openedFilefileOpen (struct file *file)
 Creates a new kernel openedFile object. More...
 
struct openedDirectorydirectoryOpen (struct directory *directory)
 Creates a new kernel openedDirectory object. More...
 
void fileSystemInit (void *addr, uint32_t length)
 Initializes the root file system. More...
 
struct directoryfileSystemIsValidDirectory (struct object *obj)
 Checks if a given object is of the type directory and casts it if possible. More...
 
struct filefileSystemIsValidFile (struct object *obj)
 Checks if a given object is of the type file and casts it if possible. More...
 
struct directoryfileSystemGetRoot ()
 Returns a reference to the root node of the file system. More...
 
struct directoryfileSystemSearchDirectory (struct directory *directory, char *path, uint32_t pathLength, bool create)
 Opens or creates a directory. More...
 
struct filefileSystemSearchFile (struct directory *directory, char *path, uint32_t pathLength, bool create)
 Opens or creates a file. More...
 

Variables

struct directoryfileSystemRoot