Mounts a virtual file system.
Item | Description |
---|---|
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:
Field | Description |
---|---|
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.
Item | Description |
---|---|
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.