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

vfs_mount Entry Point

Purpose

Mounts a virtual file system.

Syntax

int vfs_mount (vfsp)
struct vfs *vfsp;
struct ucred *crp;

Parameter

vfsp Points to the newly created vfs structure.
crp Points to the cred structure. This structure contains data that the file system can use to validate access permission.

Description

The vfs_mount entry point is called by the logical file system to mount a new file system. This entry point is called after the vfs structure is allocated and initialized. Before this structure is passed to the vfs_mount entry point, the logical file system:

Execution Environment

The vfs_mount entry point can be called from the process environment only.

Return Values

0 Indicates success.

Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.

Related Information

The mount subroutine, vmount subroutine.

Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]