FreeBSD/sys/fs/nfsserver/nfs_nfsdport.c
/*
 * Get a file handle for a vnode.
 */
Get a file handle for a vnode.
Get a file handle for a vnode .
int
nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p)
{
	int error;
	NFSBZERO((caddr_t)fhp, sizeof(fhandle_t));
	fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid;
	error = VOP_VPTOFH(vp, &fhp->fh_fid);
	NFSEXITCODE(error);
	return (error);
}
int nfsvno_getfh ( struct vnode * vp , fhandle_t * fhp , struct thread * p ) { int error ; NFSBZERO ( ( caddr_t ) fhp , sizeof ( fhandle_t ) ) ; fhp -> fh_fsid = vp -> v_mount -> mnt_stat . f_fsid ; error = VOP_VPTOFH ( vp , & fhp -> fh_fid ) ; NFSEXITCODE ( error ) ; return ( error ) ; }
Get a file handle for a vnode.
Get a file handle for a vnode .