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

Technical Reference: Kernel and Subsystems, 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.

Related Information

The vn_get kernel service.

Virtual File System Overview and Virtual File System (VFS) Kernel Services 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 ]