_GetSetPageOutCount

include vmm.inc

VMMcall _GetSetPageOutCount, <NewCount, flags>


The _GetSetPageOutCount service either sets or returns the page-out count.

This service is for exclusive use by the virtual page swap device.

Parameters

NewCount

Specifies the new page-out count. This parameter is used only if the flag parameter is not set to the GSPOC_F_Get value.

flags

Specifies the operation flags. This parameter can be the following value:

Value Meaning

GSPOC_F_Get Returns the current value of the page-out count; the NewCount parameter is ignored. If this value is not given, the service sets the value of the page-out count to NewCount.

All other values are reserved.

Return Value

The EAX register contains the page-out count if the GSPOC_F_Get value is given. Otherwise, this service has no return value.

Comments

This service allows the virtual page swap device to manipulate a memory manager parameter associated with demand paging. This parameter is the page-out ahead count. Whenever a page is paged out to satisfy a page in, the system pages out an additional PageOutCount-1 pages and puts the pages on the free list (if possible).

Uses

EAX

See Also

_PageOutDirtyPages