tmpfs: initial implementation

This commit is contained in:
Matheus
2023-04-30 21:14:59 -03:00
parent b4c98c4a47
commit 6d42a6f91c
3 changed files with 429 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef _TMPFS_H
#define _TMPFS_H
#include <kernel/vfs.h>
#include <hashtable.h>
#include <stdint.h>
#include <stddef.h>
typedef struct tmpfs_t {
vfs_t vfs;
uintmax_t inodenumber;
} tmpfs_t;
typedef struct tmpfsnode_t {
vnode_t vnode;
vattr_t attr;
union {
hashtable_t children;
struct {
void *data;
size_t pagecount;
};
char *link;
};
} tmpfsnode_t;
void tmpfs_init();
#endif