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

Function vfs_hashinit

freebsd/kern/vfs_hash.c:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46static struct rwlock __exclusive_cache_line vfs_hash_lock;
47
48static void
49vfs_hashinit(void *dummy __unused)
50{
51
52 vfs_hash_tbl = hashinit(desiredvnodes, M_VFS_HASH, &vfs_hash_mask);
53 rw_init(&vfs_hash_lock, "vfs hash");
54 LIST_INIT(&vfs_hash_side);
55}
56
57/* Must be SI_ORDER_SECOND so desiredvnodes is available */
58SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL);

Callers

nothing calls this directly

Calls 2

rw_initFunction · 0.85
hashinitFunction · 0.70

Tested by

no test coverage detected