Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/tmpfs/tmpfs.h
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | #define TMPFS_VALIDATE_DIR(node) do { \ | ||||
MPASS((node)->tn_type == VDIR); \ | MPASS((node)->tn_type == VDIR); \ | ||||
MPASS((node)->tn_size % sizeof(struct tmpfs_dirent) == 0); \ | MPASS((node)->tn_size % sizeof(struct tmpfs_dirent) == 0); \ | ||||
} while (0) | } while (0) | ||||
/* | /* | ||||
* Amount of memory pages to reserve for the system (e.g., to not use by | * Amount of memory pages to reserve for the system (e.g., to not use by | ||||
* tmpfs). | * tmpfs). | ||||
*/ | */ | ||||
#if !defined(TMPFS_PAGES_MINRESERVED) | |||||
#define TMPFS_PAGES_MINRESERVED (4 * 1024 * 1024 / PAGE_SIZE) | #define TMPFS_PAGES_MINRESERVED (4 * 1024 * 1024 / PAGE_SIZE) | ||||
#endif | |||||
size_t tmpfs_mem_avail(void); | size_t tmpfs_mem_avail(void); | ||||
size_t tmpfs_pages_used(struct tmpfs_mount *tmp); | size_t tmpfs_pages_used(struct tmpfs_mount *tmp); | ||||
#endif | #endif | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |