Maps a file system structure to a file ID.
Maps a file identifier to a mode.
#include <sys/types.h>
#include <sys/vnode.h>
int fidtovp(fsid, fid, vpp)
fsid_t *fsid;
struct fileid *fid;
struct vnode **vpp;
The fidtovp kernel service returns a pointer to a vnode for the file identified by fsid and fid, and increments the count on the vnode so the file is not removed. Subroutines that call the fidtovp kernel service must call VNOP_RELE to release the vnode pointer.
This kernel service is designed for use by the server side of distributed file systems.
The fidtovp kernel service can be called from the process environment only.
0 | Indicates successful completion. |
ESTALE | Indicates the requested file or file system was removed or recreated since last access with the given file system ID or file ID. |