Skip to content

TMPFS

include/fs/tmpfs.h View source View on GitHub
struct tmpfs_node (15 fields) source
§ enum tmpfs_type type
§ char *name
§ void **pages

array of page pointers

§ uint64_t num_pages

number of allocated pages

§ uint64_t size

total file size

§ mode_t mode
§ uid_t uid
§ gid_t gid
§ uint64_t mtime
§ uint64_t atime
§ struct tmpfs_node *parent
§ struct tmpfs_node **children
§ uint64_t child_count
§ struct mutex lock
struct tmpfs_fs (1 field) source
§ struct tmpfs_node *root
enum tmpfs_type (3 variants) source
§ TMPFS_FILE
§ TMPFS_DIR
struct vfs_node * tmpfs_mkroot(const char *mount_point)
source
#define TMPFS_PAGE_SIZE 4096
source
#define TMPFS_PAGE_SHIFT 12
source
#define TMPFS_PAGE_MASK (TMPFS_PAGE_SIZE - 1)
source