ReactOS 0.4.15-dev-6663-gd1e9fe1
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | MODULE_INVOLVED_IN_ARM3 |
#define | MI_MAPPED_COPY_PAGES 14 |
#define | MI_POOL_COPY_BYTES 512 |
#define | MI_MAX_TRANSFER_SIZE 64 * 1024 |
FORCEINLINE BOOLEAN MI_IS_LOCKED_VA | ( | PMMPFN | Pfn1, |
ULONG | LockType | ||
) |
Definition at line 3271 of file virtual.c.
Referenced by MiLockVirtualMemory(), and MiUnlockVirtualMemory().
FORCEINLINE VOID MI_LOCK_VA | ( | PMMPFN | Pfn1, |
ULONG | LockType | ||
) |
Definition at line 3288 of file virtual.c.
Referenced by MiLockVirtualMemory().
FORCEINLINE VOID MI_UNLOCK_VA | ( | PMMPFN | Pfn1, |
ULONG | LockType | ||
) |
Definition at line 3309 of file virtual.c.
Referenced by MiUnlockVirtualMemory().
ULONG NTAPI MiCalculatePageCommitment | ( | IN ULONG_PTR | StartingAddress, |
IN ULONG_PTR | EndingAddress, | ||
IN PMMVAD | Vad, | ||
IN PEPROCESS | Process | ||
) |
Definition at line 42 of file virtual.c.
Referenced by NtFreeVirtualMemory().
|
static |
FIXME: this might be a memory area for a section view...
Definition at line 3330 of file virtual.c.
Referenced by MiLockVirtualMemory(), and MiUnlockVirtualMemory().
ULONG NTAPI MiDecommitPages | ( | IN PVOID | StartingAddress, |
IN PMMPTE | EndingPte, | ||
IN PEPROCESS | Process, | ||
IN PMMVAD | Vad | ||
) |
Definition at line 2621 of file virtual.c.
Referenced by NtFreeVirtualMemory().
VOID NTAPI MiDeletePte | ( | IN PMMPTE | PointerPte, |
IN PVOID | VirtualAddress, | ||
IN PEPROCESS | CurrentProcess, | ||
IN PMMPTE | PrototypePte | ||
) |
Definition at line 369 of file virtual.c.
Referenced by MiDeletePde(), MiDeleteVirtualAddresses(), MiResolveProtoPteFault(), and MmArmAccessFault().
PFN_COUNT NTAPI MiDeleteSystemPageableVm | ( | IN PMMPTE | PointerPte, |
IN PFN_NUMBER | PageCount, | ||
IN ULONG | Flags, | ||
OUT PPFN_NUMBER | ValidPages | ||
) |
Definition at line 275 of file virtual.c.
Referenced by MiFreeInitializationCode(), MiFreePoolPages(), MmFreeDriverInitialization(), and MmFreeSpecialPool().
Definition at line 530 of file virtual.c.
Referenced by MiRemoveMappedView(), MmCleanProcessAddressSpace(), MmDeleteTeb(), and NtFreeVirtualMemory().
NTSTATUS NTAPI MiDoMappedCopy | ( | IN PEPROCESS | SourceProcess, |
IN PVOID | SourceAddress, | ||
IN PEPROCESS | TargetProcess, | ||
OUT PVOID | TargetAddress, | ||
IN SIZE_T | BufferSize, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
OUT PSIZE_T | ReturnSize | ||
) |
Definition at line 792 of file virtual.c.
Referenced by MmCopyVirtualMemory().
NTSTATUS NTAPI MiDoPoolCopy | ( | IN PEPROCESS | SourceProcess, |
IN PVOID | SourceAddress, | ||
IN PEPROCESS | TargetProcess, | ||
OUT PVOID | TargetAddress, | ||
IN SIZE_T | BufferSize, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
OUT PSIZE_T | ReturnSize | ||
) |
Definition at line 1017 of file virtual.c.
Referenced by MmCopyVirtualMemory().
VOID NTAPI MiFlushTbAndCapture | ( | IN PMMVAD | FoundVad, |
IN PMMPTE | PointerPte, | ||
IN ULONG | ProtectionMask, | ||
IN PMMPFN | Pfn1, | ||
IN BOOLEAN | CaptureDirtyBit | ||
) |
Definition at line 2015 of file section.c.
Referenced by MiProtectVirtualMemory(), and MiSetProtectionOnSection().
LONG MiGetExceptionInfo | ( | IN PEXCEPTION_POINTERS | ExceptionInfo, |
OUT PBOOLEAN | HaveBadAddress, | ||
OUT PULONG_PTR | BadAddress | ||
) |
Definition at line 747 of file virtual.c.
Referenced by MiDoMappedCopy(), and MiDoPoolCopy().
Definition at line 1353 of file virtual.c.
Referenced by MiProtectVirtualMemory(), MiQueryAddressState(), MiSetProtectionOnSection(), and NtAllocateVirtualMemory().
BOOLEAN NTAPI MiIsEntireRangeCommitted | ( | IN ULONG_PTR | StartingAddress, |
IN ULONG_PTR | EndingAddress, | ||
IN PMMVAD | Vad, | ||
IN PEPROCESS | Process | ||
) |
Definition at line 2000 of file virtual.c.
Referenced by MiProtectVirtualMemory().
|
static |
Definition at line 3375 of file virtual.c.
Referenced by NtLockVirtualMemory(), and RunTest().
VOID NTAPI MiMakePdeExistAndMakeValid | ( | IN PMMPDE | PointerPde, |
IN PEPROCESS | TargetProcess, | ||
IN KIRQL | OldIrql | ||
) |
Definition at line 2475 of file virtual.c.
Referenced by _Success_(), MiDecommitPages(), MiMapLockedPagesInUserSpace(), MiProtectVirtualMemory(), MiSetProtectionOnSection(), MmCreatePageFileMapping(), MmCreateVirtualMappingUnsafeEx(), MmDeletePageFileMapping(), MmGetPageFileMapping(), MmGetPageProtect(), MmGetPfnForProcess(), MmIsDisabledPage(), MmIsPagePresent(), MmIsPageSwapEntry(), MmSetDirtyBit(), MmSetPageProtect(), and NtAllocateVirtualMemory().
ULONG NTAPI MiMakeSystemAddressValid | ( | IN PVOID | PageTableVirtualAddress, |
IN PEPROCESS | CurrentProcess | ||
) |
Definition at line 183 of file virtual.c.
Referenced by MiCalculatePageCommitment(), MiDeleteVirtualAddresses(), MiIsEntireRangeCommitted(), MiIsPageTablePresent(), MiMakePdeExistAndMakeValid(), and MiQueryAddressState().
Definition at line 235 of file virtual.c.
Referenced by MiGetPageProtection(), and MiSegmentDelete().
Definition at line 2569 of file virtual.c.
Referenced by MiDecommitPages().
NTSTATUS NTAPI MiProtectVirtualMemory | ( | IN PEPROCESS | Process, |
IN OUT PVOID * | BaseAddress, | ||
IN OUT PSIZE_T | NumberOfBytesToProtect, | ||
IN ULONG | NewAccessProtection, | ||
OUT PULONG OldAccessProtection | OPTIONAL | ||
) |
Definition at line 2196 of file virtual.c.
Referenced by CcPreparePinWrite(), CcpUnpinData(), NtAllocateVirtualMemory(), and NtProtectVirtualMemory().
ULONG NTAPI MiQueryAddressState | ( | IN PVOID | Va, |
IN PMMVAD | Vad, | ||
IN PEPROCESS | TargetProcess, | ||
OUT PULONG | ReturnedProtect, | ||
OUT PVOID * | NextVa | ||
) |
Definition at line 1468 of file virtual.c.
Referenced by MiQueryMemoryBasicInformation().
NTSTATUS NTAPI MiQueryMemoryBasicInformation | ( | IN HANDLE | ProcessHandle, |
IN PVOID | BaseAddress, | ||
OUT PVOID | MemoryInformation, | ||
IN SIZE_T | MemoryInformationLength, | ||
OUT PSIZE_T | ReturnLength | ||
) |
Definition at line 1659 of file virtual.c.
Referenced by NtQueryVirtualMemory().
NTSTATUS NTAPI MiRosProtectVirtualMemory | ( | IN PEPROCESS | Process, |
IN OUT PVOID * | BaseAddress, | ||
IN OUT PSIZE_T | NumberOfBytesToProtect, | ||
IN ULONG | NewAccessProtection, | ||
OUT PULONG OldAccessProtection | OPTIONAL | ||
) |
Definition at line 2156 of file virtual.c.
Referenced by MiProtectVirtualMemory().
|
static |
Definition at line 3694 of file virtual.c.
Referenced by NtUnlockVirtualMemory().
NTSTATUS NTAPI MmCopyVirtualMemory | ( | IN PEPROCESS | SourceProcess, |
IN PVOID | SourceAddress, | ||
IN PEPROCESS | TargetProcess, | ||
OUT PVOID | TargetAddress, | ||
IN SIZE_T | BufferSize, | ||
IN KPROCESSOR_MODE | PreviousMode, | ||
OUT PSIZE_T | ReturnSize | ||
) |
Definition at line 1268 of file virtual.c.
Referenced by LpcpCopyRequestData(), NtReadVirtualMemory(), and NtWriteVirtualMemory().
NTSTATUS NTAPI MmFlushVirtualMemory | ( | IN PEPROCESS | Process, |
IN OUT PVOID * | BaseAddress, | ||
IN OUT PSIZE_T | RegionSize, | ||
OUT PIO_STATUS_BLOCK | IoStatusBlock | ||
) |
Definition at line 1339 of file virtual.c.
Referenced by NtFlushVirtualMemory().
PHYSICAL_ADDRESS NTAPI MmGetPhysicalAddress | ( | PVOID | Address | ) |
Definition at line 5730 of file virtual.c.
PVOID NTAPI MmGetVirtualForPhysical | ( | IN PHYSICAL_ADDRESS | PhysicalAddress | ) |
Definition at line 2788 of file virtual.c.
Referenced by EngSecureMem(), and EngSecureMemForRead().
Definition at line 2801 of file virtual.c.
Referenced by EngUnsecureMem().
NTSTATUS NTAPI NtAllocateVirtualMemory | ( | IN HANDLE | ProcessHandle, |
IN OUT PVOID * | UBaseAddress, | ||
IN ULONG_PTR | ZeroBits, | ||
IN OUT PSIZE_T | URegionSize, | ||
IN ULONG | AllocationType, | ||
IN ULONG | Protect | ||
) |
Definition at line 4486 of file virtual.c.
Referenced by Allocate(), AllocateGuarded(), AllocateReadOnly(), BaseCreateStack(), BaseCreateVDMEnvironment(), BasePushProcessParameters(), CheckAdjacentVADs(), CheckAlignment(), CheckSize(), CheckSomeDefaultAddresses(), CopyLoop(), CreateProcessInternalW(), LsapAllocateClientBuffer(), LsapEnumLogonSessions(), LsapGetLogonSessionData(), MakeReadOnly(), MemInitialize(), PsaiMalloc(), RtlCreateEnvironment(), RtlCreateQueryDebugBuffer(), RtlpDebugBufferCommit(), RtlSetEnvironmentVariable(), START_TEST(), Test_ImageSection(), Test_ImageSection2(), Test_NtFreeVirtualMemory(), Test_PageFileSection(), TestFreeNoAccess(), TestReadWrite(), TH32CreateSnapshot(), VDDAllocMem(), VDDDeInstallMemoryHook(), and VirtualAllocEx().
NTSTATUS NTAPI NtFlushInstructionCache | ( | _In_ HANDLE | ProcessHandle, |
_In_opt_ PVOID | BaseAddress, | ||
_In_ SIZE_T | FlushSize | ||
) |
Definition at line 3038 of file virtual.c.
Referenced by FixupDll(), FlushInstructionCache(), and WriteProcessMemory().
NTSTATUS NTAPI NtFlushVirtualMemory | ( | IN HANDLE | ProcessHandle, |
IN OUT PVOID * | BaseAddress, | ||
IN OUT PSIZE_T | NumberOfBytesToFlush, | ||
OUT PIO_STATUS_BLOCK | IoStatusBlock | ||
) |
Definition at line 4029 of file virtual.c.
Referenced by FlushViewOfFile(), and Test_ImageSection().