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

Function set_rootvnode

freebsd/kern/vfs_mountroot.c:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237static void
238set_rootvnode(void)
239{
240
241 if (VFS_ROOT(TAILQ_FIRST(&mountlist), LK_EXCLUSIVE, &rootvnode))
242 panic("set_rootvnode: Cannot find root vnode");
243
244 VOP_UNLOCK(rootvnode);
245
246 pwd_set_rootvnode();
247}
248
249static int
250vfs_mountroot_devfs(struct thread *td, struct mount **mpp)

Callers 2

vfs_mountroot_devfsFunction · 0.70
vfs_mountroot_shuffleFunction · 0.70

Calls 2

pwd_set_rootvnodeFunction · 0.85
panicFunction · 0.70

Tested by

no test coverage detected