[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]