Assures that a virtual node (v-node) is not destroyed.
int vn_hold (vp) struct vnode *vp;
vp | Points to the v-node. |
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.
The vn_hold entry point can be called from the process environment only.
The vn_hold entry point cannot fail and therefore has no return values.
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.