TMPFS
include/fs/tmpfs.h View source View on GitHubStructs
Section titled “Structs”tmpfs_node
Section titled “tmpfs_node” 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
§
char *symlink_target §
uint64_t mtime §
uint64_t atime §
struct tmpfs_node *parent §
struct tmpfs_node **children §
uint64_t child_count tmpfs_fs
Section titled “tmpfs_fs” struct tmpfs_fs (1 field) source
§
struct tmpfs_node *root tmpfs_type
Section titled “tmpfs_type”Functions
Section titled “Functions”tmpfs_mkroot
Section titled “tmpfs_mkroot”Macros
Section titled “Macros”TMPFS_PAGE_SIZE
Section titled “TMPFS_PAGE_SIZE”#define TMPFS_PAGE_SIZE 4096 source TMPFS_PAGE_SHIFT
Section titled “TMPFS_PAGE_SHIFT”#define TMPFS_PAGE_SHIFT 12 source TMPFS_PAGE_MASK
Section titled “TMPFS_PAGE_MASK”#define TMPFS_PAGE_MASK (TMPFS_PAGE_SIZE - 1) source