Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/pseudofs/pseudofs_vncache.c
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
pfs_vncache_unload(void) | pfs_vncache_unload(void) | ||||
{ | { | ||||
EVENTHANDLER_DEREGISTER(process_exit, pfs_exit_tag); | EVENTHANDLER_DEREGISTER(process_exit, pfs_exit_tag); | ||||
pfs_purge_all(); | pfs_purge_all(); | ||||
KASSERT(pfs_vncache_entries == 0, | KASSERT(pfs_vncache_entries == 0, | ||||
("%d vncache entries remaining", pfs_vncache_entries)); | ("%d vncache entries remaining", pfs_vncache_entries)); | ||||
mtx_destroy(&pfs_vncache_mutex); | mtx_destroy(&pfs_vncache_mutex); | ||||
hashdestroy(pfs_vncache_hashtbl, M_PFSVNCACHE, pfs_vncache_hash); | |||||
} | } | ||||
/* | /* | ||||
* Allocate a vnode | * Allocate a vnode | ||||
*/ | */ | ||||
int | int | ||||
pfs_vncache_alloc(struct mount *mp, struct vnode **vpp, | pfs_vncache_alloc(struct mount *mp, struct vnode **vpp, | ||||
struct pfs_node *pn, pid_t pid) | struct pfs_node *pn, pid_t pid) | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |