Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
filesystem.h File Reference
#include <type.h>

Go to the source code of this file.

Data Structures

struct  fs_operations
 
struct  fs_magic
 
struct  fs_data
 
struct  filesystem
 
struct  fs_instance
 

Typedefs

typedef struct vnode vnode_t
 
typedef struct dentrydentry_ptr
 
typedef struct cdevcdev_ptr_t
 
typedef struct filesystem filesystem_t
 
typedef struct fs_operations fs_operations_t
 
typedef filesystem_tfilesystem_ptr_t
 

Functions

struct filesystem __attribute__ ((aligned(64)))
 
int create_filesystem (char name[16], struct fs_data *fs_data)
 
filesystem_ptr_t retrieve_filesystem (const char name[16])
 
filesystem_tget_all_filesystem ()
 
filesystem_tget_filesystem (const char name[16])
 

Variables

char name [16]
 
struct fs_data data
 
struct filesystemnext
 
struct fs_instance __attribute__
 

Typedef Documentation

◆ cdev_ptr_t

typedef struct cdev* cdev_ptr_t

Definition at line 12 of file filesystem.h.

◆ dentry_ptr

typedef struct dentry* dentry_ptr

Definition at line 11 of file filesystem.h.

◆ filesystem_ptr_t

Definition at line 36 of file filesystem.h.

◆ filesystem_t

typedef struct filesystem filesystem_t

Definition at line 14 of file filesystem.h.

◆ fs_operations_t

◆ vnode_t

typedef struct vnode vnode_t

Definition at line 10 of file filesystem.h.

Function Documentation

◆ __attribute__()

struct filesystem __attribute__ ( (aligned(64)) )

Definition at line 1 of file core.h.

◆ create_filesystem()

int create_filesystem ( char name[16],
struct fs_data * fs_data )

Definition at line 7 of file filesystem.c.

References kalloc(), memcopy(), memset(), name, fs_data::ops, registered_filesystems, strncpy(), VFS_ERR, and VFS_OK.

Referenced by INIT().

◆ get_all_filesystem()

filesystem_t * get_all_filesystem ( )

◆ get_filesystem()

filesystem_t * get_filesystem ( const char name[16])

References name.

◆ retrieve_filesystem()

filesystem_ptr_t retrieve_filesystem ( const char name[16])

References name.

Variable Documentation

◆ __attribute__

struct fs_instance __attribute__

◆ data

◆ name

char name[16]

Definition at line 0 of file filesystem.h.

◆ next

struct filesystem* next

Definition at line 2 of file filesystem.h.