mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
(FORMATTING)
- get back this good ol' 4-space indentation svn path=/trunk/; revision=54366
This commit is contained in:
parent
174739a13c
commit
0e2151927b
|
@ -163,14 +163,14 @@ MmNotPresentFaultVirtualMemory(PMMSUPPORT AddressSpace,
|
||||||
MEMORY_AREA* MemoryArea,
|
MEMORY_AREA* MemoryArea,
|
||||||
PVOID Address)
|
PVOID Address)
|
||||||
/*
|
/*
|
||||||
* FUNCTION: Move data into memory to satisfy a page not present fault
|
* FUNCTION: Move data into memory to satisfy a page not present fault
|
||||||
* ARGUMENTS:
|
* ARGUMENTS:
|
||||||
* AddressSpace = Address space within which the fault occurred
|
* AddressSpace = Address space within which the fault occurred
|
||||||
* MemoryArea = The memory area within which the fault occurred
|
* MemoryArea = The memory area within which the fault occurred
|
||||||
* Address = The absolute address of fault
|
* Address = The absolute address of fault
|
||||||
* RETURNS: Status
|
* RETURNS: Status
|
||||||
* NOTES: This function is called with the address space lock held.
|
* NOTES: This function is called with the address space lock held.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
PFN_NUMBER Page;
|
PFN_NUMBER Page;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -363,8 +363,8 @@ MmModifyAttributes(PMMSUPPORT AddressSpace,
|
||||||
ULONG NewType,
|
ULONG NewType,
|
||||||
ULONG NewProtect)
|
ULONG NewProtect)
|
||||||
/*
|
/*
|
||||||
* FUNCTION: Modify the attributes of a memory region
|
* FUNCTION: Modify the attributes of a memory region
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
PEPROCESS Process = MmGetAddressSpaceOwner(AddressSpace);
|
PEPROCESS Process = MmGetAddressSpaceOwner(AddressSpace);
|
||||||
|
|
||||||
|
@ -489,8 +489,8 @@ MiProtectVirtualMemory(IN PEPROCESS Process,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
|
@ -953,25 +953,25 @@ MmFreeVirtualMemory(PEPROCESS Process,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
NTSTATUS NTAPI
|
NTSTATUS NTAPI
|
||||||
NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
IN PVOID* UBaseAddress,
|
IN PVOID* UBaseAddress,
|
||||||
IN PSIZE_T URegionSize,
|
IN PSIZE_T URegionSize,
|
||||||
IN ULONG FreeType)
|
IN ULONG FreeType)
|
||||||
/*
|
/*
|
||||||
* FUNCTION: Frees a range of virtual memory
|
* FUNCTION: Frees a range of virtual memory
|
||||||
* ARGUMENTS:
|
* ARGUMENTS:
|
||||||
* ProcessHandle = Points to the process that allocated the virtual
|
* ProcessHandle = Points to the process that allocated the virtual
|
||||||
* memory
|
* memory
|
||||||
* BaseAddress = Points to the memory address, rounded down to a
|
* BaseAddress = Points to the memory address, rounded down to a
|
||||||
* multiple of the pagesize
|
* multiple of the pagesize
|
||||||
* RegionSize = Limits the range to free, rounded up to a multiple of
|
* RegionSize = Limits the range to free, rounded up to a multiple of
|
||||||
* the paging size
|
* the paging size
|
||||||
* FreeType = Can be one of the values: MEM_DECOMMIT, or MEM_RELEASE
|
* FreeType = Can be one of the values: MEM_DECOMMIT, or MEM_RELEASE
|
||||||
* RETURNS: Status
|
* RETURNS: Status
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
MEMORY_AREA* MemoryArea;
|
MEMORY_AREA* MemoryArea;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -1108,7 +1108,7 @@ NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
|
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_NOT_IMPLEMENTED;
|
||||||
|
|
||||||
unlock_deref_and_return:
|
unlock_deref_and_return:
|
||||||
|
|
||||||
MmUnlockAddressSpace(AddressSpace);
|
MmUnlockAddressSpace(AddressSpace);
|
||||||
if (Attached) KeUnstackDetachProcess(&ApcState);
|
if (Attached) KeUnstackDetachProcess(&ApcState);
|
||||||
|
|
Loading…
Reference in a new issue