MCPcopy Create free account
hub / github.com/F-Stack/f-stack / VP2VNODELOCK

Function VP2VNODELOCK

freebsd/kern/vfs_cache.c:414–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412static u_int __read_mostly ncvnodehash;
413static struct mtx __read_mostly *vnodelocks;
414static inline struct mtx *
415VP2VNODELOCK(struct vnode *vp)
416{
417
418 return (&vnodelocks[(((uintptr_t)(vp) >> 8) & ncvnodehash)]);
419}
420
421static void
422cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp)

Callers 15

cache_neg_evictFunction · 0.85
cache_zap_locked_bucketFunction · 0.85
cache_remove_cnpFunction · 0.85
cache_lookup_dotdotFunction · 0.85
cache_lock_vnodes_celFunction · 0.85
cache_lock_vnodes_cel_3Function · 0.85
cache_enter_lockFunction · 0.85
cache_enter_lock_ddFunction · 0.85
cache_purge_implFunction · 0.85
cache_purge_vgoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected