---
name: "VFS_VPTOFH"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/VFS_VPTOFH"
---

# VFS\_VPTOFH(9)

turn a vnode into an NFS filehandle

## NAME

**VFS\_VPTOFH** – turn a vnode into an NFS filehandle

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/mount.h\>**

**#include \<sys/vnode.h\>**

*int*\

**VFS\_VPTOFH**(*struct vnode \*vp*, *struct fid \*fhp*);

## DESCRIPTION

This is used by the NFS server to create an opaque filehandle which uniquely identifies the file and which can be used by an NFS client to access the file in the future.

Its arguments are:

- *vp*

  The vnode to make a filehandle for.

- *fhp*

  Return parameter for the filehandle.

## SEE ALSO

[VFS(9)](/VFS/9.md), [VFS\_FHTOVP(9)](/VFS_FHTOVP/9.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
