vnop_fid Entry Point

Purpose

Builds a file identifier for a virtual node (v-node).

Syntax

int vnop_fid ( vp,  fidp,  crp)
struct vnode *vp;
struct fileid *fidp;
struct ucred *crp;

Parameters

Item Description
vp Points to the v-node that requires the file identifier.
fidp Points to where to return the file identifier.
crp Points to the cred structure. This structure contains data that the file system can use to validate access permission.

Description

The vnop_fid entry point is invoked to build a file identifier for the given v-node. This file identifier must contain sufficient information to find a v-node that represents the same file when it is presented to the vfs_get entry point.

Execution Environment

The vnop_fid entry point can be called from the process environment only.

Return Values

Item Description
0 Indicates success.

Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.