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

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

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 VN_RELE v-node operation releases the last active v-node within the file system, the VN_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.

Implementation Specifics

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

Related Information

Virtual File System Overview, Virtual File System (VFS) Kernel Services, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]