vp = VFSTOKERNFS(mp)->kf_root; VREF(vp); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p); *vpp = vp; return (0);
return(0);
kernfs_root(mp, vpp)	struct mount *mp;	struct vnode **vpp;{	struct vnode *vp;	struct proc *p = curproc;#ifdef KERNFS_DIAGNOSTIC	printf("kernfs_root(mp = %p)\n", mp);#endif	/*	 * Return locked reference to root.	 */	vp = VFSTOKERNFS(mp)->kf_root;	VREF(vp);	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p);	*vpp = vp;	return (0);}