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;
Item | Description |
---|---|
fsid | Points to a file system ID structure. The system uses this structure to determine which virtual file system (VFS) contains the requested file. |
fid | Points to a file ID structure. The system uses this pointer to locate the specific file within the VFS. |
vpp | Points to a location to store the file's vnode pointer upon successful return of the fidtovp kernel service. |
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.
Item | Description |
---|---|
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. |