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

vn_free Kernel Service

Purpose

Frees a v-node previously allocated by the vn_get kernel service.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
int vn_free (vp)
struct vnode *vp;

Parameter

vp Points to the v-node to be deallocated.

Description

The vn_free kernel service provides a mechanism for deallocating v-node objects used within the virtual file system. The v-node specified by the vp parameter is returned to the pool of available v-nodes to be used again.

Execution Environment

The vn_free kernel service can be called from the process environment only.

Return Values

The vn_free service always returns 0.

Implementation Specifics

The vn_free kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The vn_get kernel service.

Virtual File System Overview and Virtual File System (VFS) Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]