2018-03-16 15:56:19 +03:00
|
|
|
#ifndef _TMPFS_H__
|
|
|
|
#define _TMPFS_H__
|
2018-03-19 05:38:11 +03:00
|
|
|
#include <kernel/fs.h>
|
2018-03-16 15:56:19 +03:00
|
|
|
|
|
|
|
fs_node_t * tmpfs_create(char * name);
|
|
|
|
|
|
|
|
struct tmpfs_file {
|
|
|
|
char * name;
|
|
|
|
int type;
|
|
|
|
int mask;
|
|
|
|
int uid;
|
|
|
|
int gid;
|
|
|
|
unsigned int atime;
|
|
|
|
unsigned int mtime;
|
|
|
|
unsigned int ctime;
|
|
|
|
size_t length;
|
|
|
|
size_t block_count;
|
|
|
|
size_t pointers;
|
|
|
|
char ** 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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _TMPFS_H__ */
|