Mounts a virtual file system.
int vfs_mount (vfsp) struct vfs *vfsp; struct ucred *crp;
|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.|
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:
|vfs_flags|| Initialized depending on the type of mount. This field takes the following values:
|vfs_type||Initialized to the / (root) file system type when the mount subroutine is used. If the vmount subroutine is used, the vfs_type field is set to the type parameter supplied by the user. The logical file system verifies the existence of the type parameter.|
|vfs_ops||Initialized according to the vfs_type field.|
|vfs_mntdover||Identifies the v-node that refers to the stub path argument. This argument is supplied by the mount or vmount subroutine.|
|vfs_date||Holds the time stamp. The time stamp specifies the time to initialize the virtual file system.|
|vfs_number||Indicates the unique number sequence representing this virtual file system.|
|vfs_mdata||Initialized with the vmount structure supplied by the user. The virtual file system data is detailed in the /usr/include/sys/vmount.h file. All arguments indicated by this field are copied to kernel space.|
The vfs_mount entry point can be called from the process environment only.
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.
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.