vfsrele Kernel Service

Purpose

Releases all resources associated with a virtual file system.

Syntax

#include <sys/types.h>
#include <sys/errno.h>

int vfsrele ( vfsp)
struct vfs *vfsp;

Parameter

Item Description
vfsp Points to a virtual file system structure.

Description

The vfsrele kernel service releases all resources associated with a virtual file system.

When a file system is unmounted, the VFS_UNMOUNTED flag is set in the vfs structure, indicating that it is no longer valid to do path name-related operations within the file system. When this flag is set and a vnop_rele v-node operation releases the last active v-node within the file system, the vnop_rele v-node implementation must call the vfsrele kernel service to complete the deallocation of the vfs structure.

Execution Environment

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

Return Values

The vfsrele kernel service always returns a value of 0.