39 lines
595 B
C
39 lines
595 B
C
#pragma once
|
|
#include <kernel/vfs.h>
|
|
#include <kernel/list.h>
|
|
#include <sys/types.h>
|
|
|
|
fs_node_t * tmpfs_create(char * name);
|
|
|
|
struct tmpfs_file {
|
|
char * name;
|
|
int type;
|
|
int mask;
|
|
uid_t uid;
|
|
uid_t gid;
|
|
unsigned int atime;
|
|
unsigned int mtime;
|
|
unsigned int ctime;
|
|
size_t length;
|
|
size_t block_count;
|
|
size_t pointers;
|
|
uintptr_t * blocks;
|
|
char * target;
|
|
};
|
|
|
|
struct tmpfs_dir;
|
|
|
|
struct tmpfs_dir {
|
|
char * name;
|
|
int type;
|
|
int mask;
|
|
int uid;
|
|
int gid;
|
|
unsigned int atime;
|
|
unsigned int mtime;
|
|
unsigned int ctime;
|
|
list_t * files;
|
|
struct tmpfs_dir * parent;
|
|
};
|
|
|