Initializes a virtual file system.
int vfs_init ( gfsp)
struct gfs *gfsp;
Item | Description |
---|---|
gfsp | Points to a file system's attribute structure. |
The vfs_init entry point is invoked to initialize a file system. It is called when a file system implementation is loaded to perform file system-specific initialization.
The vfs_init entry point is not called through the virtual file system switch. Instead, it is called indirectly by the gfsadd kernel service when the vfs_init entry point address is stored in the gfs structure passed to the gfsadd kernel service as a parameter. (The vfs_init address is placed in the gfs_init field of the gfs structure.) The gfs structure is defined in the /usr/include/sys/gfs.h file.
The vfs_init 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.