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

Function NCP2BUCKETLOCK

freebsd/kern/vfs_cache.c:755–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755static inline struct mtx *
756NCP2BUCKETLOCK(struct namecache *ncp)
757{
758 uint32_t hash;
759
760 hash = cache_get_hash(ncp->nc_name, ncp->nc_nlen, ncp->nc_dvp);
761 return (HASH2BUCKETLOCK(hash));
762}
763
764#ifdef INVARIANTS
765static void

Callers 7

cache_neg_evictFunction · 0.85
cache_enter_lockFunction · 0.85
cache_enter_lock_ddFunction · 0.85

Calls 1

cache_get_hashFunction · 0.85

Tested by

no test coverage detected