Changes or queries the physical attachment of a file.
Item | Description | |
---|---|---|
vnode | Points to the virtual node of the file | |
cmd | Specifies the operation to
be performed. The cmd parameter can be one of the following
values:
|
|
arg | Points to a structure containing
the attach_desc_t, detach_desc_t or attinfo_desc_t information according
to the specified cmd parameter. F_ATTACH attach_desc_t F_DETACH detach_desc_t F_ATTINFO attinfo_desc_t |
|
crp | Points to the cred structure. This structure contains data that the file system can use to validate access permission. |
The vnop_memcntl entry point requests memory attachment operations as specified by the cmd parameter. The cmd parameter determines the arg structure.
The vnop_memcntl entry point can be called from the process environment only.
Item | Description |
---|---|
0 | Success. |
non-zero | Failure. |