Initiates page-out for a page range in a virtual memory object.
The vm_writep kernel service initiates page-out for the specified page range in the virtual memory object. I/O is initiated for modified pages only. Unchanged pages are left in memory, but their reference bits are set to 0.
The caller can wait for the completion of I/O initiated by this and prior calls by calling the vms_iowait kernel service.
Item | Description |
---|---|
vmid | Specifies the identifier for the virtual memory object. |
pfirst | Specifies the first page number at which page-out is to begin. |
npages | Specifies the number of pages for which the page-out operation is to be performed. |
The vm_writep kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates successful completion. |
EINVAL | Indicates any one of the following errors:
|