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

vn_rele Entry Point

Purpose

Releases a reference to a virtual node (v-node).

Syntax

int vn_rele (vp,)
struct vnode *vp;

Parameter

vp Points to the v-node.

Description

The vn_rele entry point is used by the logical file system to release the object associated with a v-node. If the object was the last reference to the v-node, the vn_rele entry point then calls the vn_free kernel service to deallocate the v-node.

If the virtual file system (VFS) was unmounted while there were open files, the logical file system sets the VFS_UNMOUNTING flag in the vfs structure. If the flag is set and the v-node to be released is the last v-node on the chain of the vfs structure, then the virtual file system must be deallocated with the vn_rele entry point.

Execution Environment

The vn_rele 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

The vn_free kernel service.

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 ]