Adds a file system with a thread-level strategy routine to the paging device table.
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/vmuser.h>
int vm_mounte ( in_dtype, in_devid, in_thrinfop)
int in_dtype;
dev_t in_devid;
struct thrpginfo * in_thrinfop;
Item | Description |
---|---|
in_dtype | Specifies the type of device. Supported device types are D_REMOTE, D_LOGDEV, D_SERVER, D_LOCALCLIENT. Other optional flags are detailed below. |
in_devid | If the type is D_LOGDEV, specifies a dev_t object of the block device. If the type is D_REMOTE or D_SERVER, specifies a pointer to a strategy routine. |
in_thrinfop | Pointer to a thrpginfo structure. |
The vm_mounte kernel service allocates an entry in the paging device table for the device specified. The vm_mounte kernel service can also mount a client file system with a thread-level strategy routine. This is done by passing in the D_THRPGIO and the D_ENHANCEDIO flags.
Name | Purpose |
---|---|
D_ENHANCEDIO | Indicates an enhanced I/O-aware file system. |
D_PREXLATE | Enables pre-translation as the default for all but remote file systems. |
D_THRPGIO | Indicates a thread-level strategy routine. |
The vm_mounte kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates a successful operation. |
ENOMEM | Indicates that there is no memory for the buf or the thrpginfo structure. |
EINVAL | Indicates one of the following errors:
|