Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/tmpfs/tmpfs.h
Show First 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | |||||
#define TMPFS_PAGES_MINRESERVED (4 * 1024 * 1024 / PAGE_SIZE) | #define TMPFS_PAGES_MINRESERVED (4 * 1024 * 1024 / PAGE_SIZE) | ||||
#endif | #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); | ||||
void tmpfs_subr_init(void); | void tmpfs_subr_init(void); | ||||
void tmpfs_subr_uninit(void); | void tmpfs_subr_uninit(void); | ||||
#endif | |||||
/* | /* | ||||
* Macros/functions to convert from generic data structures to tmpfs | * Macros/functions to convert from generic data structures to tmpfs | ||||
* specific ones. | * specific ones. | ||||
*/ | */ | ||||
static inline struct tmpfs_mount * | static inline struct tmpfs_mount * | ||||
VFS_TO_TMPFS(struct mount *mp) | VFS_TO_TMPFS(struct mount *mp) | ||||
{ | { | ||||
Show All 25 Lines | |||||
} | } | ||||
static inline bool | static inline bool | ||||
tmpfs_use_nc(struct vnode *vp) | tmpfs_use_nc(struct vnode *vp) | ||||
{ | { | ||||
return (!(VFS_TO_TMPFS(vp->v_mount)->tm_nonc)); | return (!(VFS_TO_TMPFS(vp->v_mount)->tm_nonc)); | ||||
} | } | ||||
#endif /* _KERNEL */ | |||||
#endif /* _FS_TMPFS_TMPFS_H_ */ | #endif /* _FS_TMPFS_TMPFS_H_ */ |