15#define MODULE_INVOLVED_IN_ARM3
49 SIZE_T MinimumWorkingSetSize, MaximumWorkingSetSize;
55 if ((WorkingSetMinimumInBytes == -1) &&
56 (WorkingSetMaximumInBytes == -1))
70 MinimumWorkingSetSize = (WorkingSetMinimumInBytes != 0) ?
72 MaximumWorkingSetSize = (WorkingSetMaximumInBytes != 0) ?
90 if (MinimumWorkingSetSize > MaximumWorkingSetSize)
92 DPRINT1(
"MinimumWorkingSetSize (%lu) > MaximumWorkingSetSize (%lu)\n",
93 MinimumWorkingSetSize, MaximumWorkingSetSize);
105 DPRINT1(
"Privilege for WS size increase not held\n");
113 DPRINT1(
"Not enough available pages\n");
122 DPRINT1(
"Not enough resident pages\n");
176#if _MI_PAGING_LEVELS >= 4
181#if _MI_PAGING_LEVELS >= 3
186#if _MI_PAGING_LEVELS >= 2
#define STATUS_PRIVILEGE_NOT_HELD
#define STATUS_NOT_IMPLEMENTED
static const WCHAR Cleanup[]
#define PsGetCurrentThread()
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
#define InterlockedExchangeAddSizeT(a, b)
FORCEINLINE VOID MiLockWorkingSet(IN PETHREAD Thread, IN PMMSUPPORT WorkingSet)
MM_SYSTEMSIZE MmSystemSize
FORCEINLINE VOID MiUnlockWorkingSet(IN PETHREAD Thread, IN PMMSUPPORT WorkingSet)
SIZE_T MmSystemLockPagesCount
NTSTATUS NTAPI MmMapUserAddressesToPage(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes, IN PVOID PageAddress)
NTSTATUS NTAPI MmAdjustWorkingSetSize(IN SIZE_T WorkingSetMinimumInBytes, IN SIZE_T WorkingSetMaximumInBytes, IN ULONG SystemCache, IN BOOLEAN IncreaseOkay)
NTSTATUS NTAPI MmCreateMirror(VOID)
NTSTATUS NTAPI MmSetBankedSection(IN HANDLE ProcessHandle, IN PVOID VirtualAddress, IN ULONG BankLength, IN BOOLEAN ReadWriteBank, IN PVOID BankRoutine, IN PVOID Context)
SIZE_T MmPagesAboveWsMinimum
BOOLEAN NTAPI MmSetAddressRangeModified(IN PVOID Address, IN SIZE_T Length)
BOOLEAN NTAPI MmIsAddressValid(IN PVOID VirtualAddress)
SIZE_T MmMinimumWorkingSetSize
BOOLEAN NTAPI MmIsRecursiveIoFault(VOID)
SIZE_T MmMaximumWorkingSetSize
MM_SYSTEMSIZE NTAPI MmQuerySystemSize(VOID)
BOOLEAN NTAPI MmIsNonPagedSystemAddressValid(IN PVOID VirtualAddress)
BOOLEAN NTAPI MmIsThisAnNtAsSystem(VOID)
#define MiAddressToPte(x)
#define MiAddressToPde(x)
_In_ HANDLE ProcessHandle
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
_In_ ULONG _In_ ULONG _In_ ULONG Length
FORCEINLINE PMMPTE MiAddressToPpe(PVOID Address)
FORCEINLINE PMMPTE MiAddressToPxe(PVOID Address)
PFN_NUMBER MmResidentAvailablePages
PFN_NUMBER MmAvailablePages
#define STATUS_WORKING_SET_LIMIT_RANGE
#define STATUS_BAD_WORKING_SET_LIMIT
UCHAR DisablePageFaultClustering
ULONG MinimumWorkingSetSize
ULONG MaximumWorkingSetSize
#define STATUS_INSUFFICIENT_RESOURCES
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
_Must_inspect_result_ _In_ SIZE_T _In_ PVOID PageAddress
enum _MM_SYSTEM_SIZE MM_SYSTEMSIZE
#define PsGetCurrentProcess