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

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

Related Information

Virtual File System Overview, Virtual File System (VFS) Kernel Services, Understanding Virtual Nodes (V-nodes) 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 ]