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

Item Description
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.