toaruos/base/usr/include/kernel/tmpfs.h

39 lines
595 B
C
Raw Normal View History

2021-05-31 04:47:02 +03:00
#pragma once
#include <kernel/vfs.h>
#include <kernel/list.h>
#include <sys/types.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;
2021-05-31 04:47:02 +03:00
uid_t uid;
uid_t gid;
2018-03-16 15:56:19 +03:00
unsigned int atime;
unsigned int mtime;
unsigned int ctime;
size_t length;
size_t block_count;
size_t pointers;
2021-05-31 04:47:02 +03:00
uintptr_t * blocks;
2018-03-16 15:56:19 +03:00
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;
};