[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

vn_fid Entry Point

Purpose

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

Syntax

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

Parameters

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 vn_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 vn_fid entry point can be called from the process environment only.

Return Values

0 Indicates success.

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

Related Information

Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.

List of Virtual File System Operations.


[ Previous | Next | Contents | Home | Search ]