Physical memory endpoint

This endpoint is intended for performing operations with a working set.

Information about methods of the endpoint is provided in the table below.

Methods of the pmm.PMM endpoint (kl.core.PMM interface)

Method

Method purpose and parameters

Potential danger of the method

WsOpen

Purpose

Provides access to the working set.

Parameters

  • [out] ws – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the working set.
  • [out] rc – return code.

N/A

WsGetInfo

Purpose

Gets the characteristics of the working set.

Parameters

  • [in] ws – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the working set.
  • [out] info – the structure containing the characteristics of the working set.
  • [out] rc – return code.

N/A

WsSetThreshold

Purpose

Sets the threshold values for the amount of used physical memory in the system.

Parameters

  • [in] ws – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the working set.
  • [in] threshold – the lower threshold value, in memory pages.
  • [in] width – the offset of the upper threshold value relative to the lower one, in memory pages.
  • [out] rc – return code.

Allows the following:

  • Change the threshold values set by another process (if the WsClearThreshold method is available).
  • Set the threshold values after deletion by another process.

WsClearThreshold

Purpose

Delete the threshold values for the amount of used physical memory in the system.

Parameters

  • [in] ws – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the working set.
  • [out] rc – return code.

Removes threshold values that were set by another process.

Page top