mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 09:20:30 +00:00
[NTOSKRNL]
Apply indentation of 4 spaces, no code change. svn path=/trunk/; revision=64531
This commit is contained in:
parent
4b31efff8f
commit
c9252b32bd
9 changed files with 5340 additions and 5333 deletions
|
@ -79,9 +79,9 @@ MmInitializeBalancer(ULONG NrAvailablePages, ULONG NrSystemPages)
|
||||||
VOID
|
VOID
|
||||||
INIT_FUNCTION
|
INIT_FUNCTION
|
||||||
NTAPI
|
NTAPI
|
||||||
MmInitializeMemoryConsumer(ULONG Consumer,
|
MmInitializeMemoryConsumer(
|
||||||
NTSTATUS (*Trim)(ULONG Target, ULONG Priority,
|
ULONG Consumer,
|
||||||
PULONG NrFreed))
|
NTSTATUS (*Trim)(ULONG Target, ULONG Priority, PULONG NrFreed))
|
||||||
{
|
{
|
||||||
MiMemoryConsumers[Consumer].Trim = Trim;
|
MiMemoryConsumers[Consumer].Trim = Trim;
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,8 @@ MiBalancerThread(PVOID Unused)
|
||||||
/* Game over */
|
/* Game over */
|
||||||
KeBugCheck(NO_PAGES_AVAILABLE);
|
KeBugCheck(NO_PAGES_AVAILABLE);
|
||||||
}
|
}
|
||||||
} while (InitialTarget != 0);
|
}
|
||||||
|
while (InitialTarget != 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -357,7 +357,7 @@ MmRebalanceTree(
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MiInsertVad(IN PMMVAD Vad,
|
MiInsertVad(IN PMMVAD Vad,
|
||||||
IN PEPROCESS Process);
|
IN PEPROCESS Process);
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -673,7 +673,7 @@ MmFindGapAtAddress(
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MiRemoveNode(IN PMMADDRESS_NODE Node,
|
MiRemoveNode(IN PMMADDRESS_NODE Node,
|
||||||
IN PMM_AVL_TABLE Table);
|
IN PMM_AVL_TABLE Table);
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
|
|
||||||
|
|
|
@ -69,20 +69,20 @@ extern MMSESSION MmSession;
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
MiMapViewInSystemSpace(IN PVOID Section,
|
MiMapViewInSystemSpace(IN PVOID Section,
|
||||||
IN PVOID Session,
|
IN PVOID Session,
|
||||||
OUT PVOID *MappedBase,
|
OUT PVOID *MappedBase,
|
||||||
IN OUT PSIZE_T ViewSize);
|
IN OUT PSIZE_T ViewSize);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
MmCreateArm3Section(OUT PVOID *SectionObject,
|
MmCreateArm3Section(OUT PVOID *SectionObject,
|
||||||
IN ACCESS_MASK DesiredAccess,
|
IN ACCESS_MASK DesiredAccess,
|
||||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||||
IN PLARGE_INTEGER InputMaximumSize,
|
IN PLARGE_INTEGER InputMaximumSize,
|
||||||
IN ULONG SectionPageProtection,
|
IN ULONG SectionPageProtection,
|
||||||
IN ULONG AllocationAttributes,
|
IN ULONG AllocationAttributes,
|
||||||
IN HANDLE FileHandle OPTIONAL,
|
IN HANDLE FileHandle OPTIONAL,
|
||||||
IN PFILE_OBJECT FileObject OPTIONAL);
|
IN PFILE_OBJECT FileObject OPTIONAL);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -163,11 +163,13 @@ static ULONG SectionCharacteristicsToProtect[16] =
|
||||||
|
|
||||||
extern ULONG MmMakeFileAccess [];
|
extern ULONG MmMakeFileAccess [];
|
||||||
ACCESS_MASK NTAPI MiArm3GetCorrectFileAccessMask(IN ACCESS_MASK SectionPageProtection);
|
ACCESS_MASK NTAPI MiArm3GetCorrectFileAccessMask(IN ACCESS_MASK SectionPageProtection);
|
||||||
static GENERIC_MAPPING MmpSectionMapping = {
|
static GENERIC_MAPPING MmpSectionMapping =
|
||||||
|
{
|
||||||
STANDARD_RIGHTS_READ | SECTION_MAP_READ | SECTION_QUERY,
|
STANDARD_RIGHTS_READ | SECTION_MAP_READ | SECTION_QUERY,
|
||||||
STANDARD_RIGHTS_WRITE | SECTION_MAP_WRITE,
|
STANDARD_RIGHTS_WRITE | SECTION_MAP_WRITE,
|
||||||
STANDARD_RIGHTS_EXECUTE | SECTION_MAP_EXECUTE,
|
STANDARD_RIGHTS_EXECUTE | SECTION_MAP_EXECUTE,
|
||||||
SECTION_ALL_ACCESS};
|
SECTION_ALL_ACCESS
|
||||||
|
};
|
||||||
|
|
||||||
static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
|
static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
|
||||||
{
|
{
|
||||||
|
@ -2453,12 +2455,14 @@ MmAlterViewAttributes(PMMSUPPORT AddressSpace,
|
||||||
ULONG Protect = NewProtect;
|
ULONG Protect = NewProtect;
|
||||||
|
|
||||||
/* Wait for a wait entry to disappear */
|
/* Wait for a wait entry to disappear */
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
MmGetPageFileMapping(Process, Address, &SwapEntry);
|
MmGetPageFileMapping(Process, Address, &SwapEntry);
|
||||||
if (SwapEntry != MM_WAIT_ENTRY)
|
if (SwapEntry != MM_WAIT_ENTRY)
|
||||||
break;
|
break;
|
||||||
MiWaitForPageEvent(Process, Address);
|
MiWaitForPageEvent(Process, Address);
|
||||||
} while (TRUE);
|
}
|
||||||
|
while (TRUE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we doing COW for this segment then check if the page is
|
* If we doing COW for this segment then check if the page is
|
||||||
|
@ -3943,7 +3947,8 @@ MmMapViewOfSegment(PMMSUPPORT AddressSpace,
|
||||||
Granularity = PAGE_SIZE;
|
Granularity = PAGE_SIZE;
|
||||||
|
|
||||||
#ifdef NEWCC
|
#ifdef NEWCC
|
||||||
if (Segment->Flags & MM_DATAFILE_SEGMENT) {
|
if (Segment->Flags & MM_DATAFILE_SEGMENT)
|
||||||
|
{
|
||||||
LARGE_INTEGER FileOffset;
|
LARGE_INTEGER FileOffset;
|
||||||
FileOffset.QuadPart = ViewOffset;
|
FileOffset.QuadPart = ViewOffset;
|
||||||
ObReferenceObject(Section);
|
ObReferenceObject(Section);
|
||||||
|
@ -4752,7 +4757,8 @@ MmFlushImageSection (IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
|
||||||
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->DataSectionObject;
|
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->DataSectionObject;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SectionObjectPointer->ImageSectionObject) {
|
if (SectionObjectPointer->ImageSectionObject)
|
||||||
|
{
|
||||||
DPRINT1("SectionObject has ImageSection\n");
|
DPRINT1("SectionObject has ImageSection\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue