mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
tmpfs: initial implementation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user