FreeBSD/sys/fs/ext2fs/ext2_vnops.c
/*
 * Initialize the vnode associated with a new inode, handle aliased
 * vnodes.
 */
Initialize the vnode associated with a new inode, handle aliased
vnodes.
Initialize the vnode associated with a new inode handle aliased vnodes .
int
ext2_vinit(struct mount *mntp, struct vop_vector *fifoops, struct vnode **vpp)
{
	struct inode *ip;
	struct vnode *vp;
	vp = *vpp;
	ip = VTOI(vp);
	vp->v_type = IFTOVT(ip->i_mode);
	if (vp->v_type == VFIFO)
		vp->v_op = fifoops;
	if (ip->i_number == EXT2_ROOTINO)
		vp->v_vflag |= VV_ROOT;
	ip->i_modrev = init_va_filerev();
	*vpp = vp;
	return (0);
}
int ext2_vinit ( struct mount * mntp , struct vop_vector * fifoops , struct vnode * * vpp ) { struct inode * ip ; struct vnode * vp ; vp = * vpp ; ip = VTOI ( vp ) ; vp -> v_type = IFTOVT ( ip -> i_mode ) ; if ( vp -> v_type == VFIFO ) vp -> v_op = fifoops ; if ( ip -> i_number == EXT2_ROOTINO ) vp -> v_vflag |= VV_ROOT ; ip -> i_modrev = init_va_filerev ( ) ; * vpp = vp ; return ( 0 ) ; }
Initialize the vnode associated with a new inode, handle aliased
 vnodes.
Initialize the vnode associated with a new inode handle aliased vnodes .