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

vn_hold Entry Point

Purpose

Assures that a virtual node (v-node) is not destroyed.

Syntax

int vn_hold (vp)
struct vnode *vp;

Parameter

vp Points to the v-node.

Description

The vn_hold entry point increments the v_count field, the hold count on the v-node, and the v-node's underlying g-node (generic node). This incrementation assures that the v-node is not deallocated.

Execution Environment

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

Return Values

The vn_hold entry point cannot fail and therefore has no return values.

Related Information

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


[ Previous | Next | Contents | Home | Search ]