#include "ntrtlp.h"
Go to the source code of this file.
Defines | |
#define | RightShiftUlong(E1, E2) ((E2) < 32 ? (E1) >> (E2) : 0) |
#define | LeftShiftUlong(E1, E2) ((E2) < 32 ? (E1) << (E2) : 0) |
#define | GET_BYTE_DECLARATIONS() PUCHAR _CURRENT_POSITION; |
#define | GET_BYTE_INITIALIZATION(RTL_BITMAP, BYTE_INDEX) |
#define | GET_BYTE(THIS_BYTE) |
#define | BM_4567 0xFFFFFFFF00000000UI64 |
#define | BM_67 0xFFFF000000000000UI64 |
#define | BM_7 0xFF00000000000000UI64 |
#define | BM_5 0x0000FF0000000000UI64 |
#define | BM_23 0x00000000FFFF0000UI64 |
#define | BM_3 0x00000000FF000000UI64 |
#define | BM_1 0x000000000000FF00UI64 |
#define | BM_0123 0x00000000FFFFFFFFUI64 |
#define | BM_01 0x000000000000FFFFUI64 |
#define | BM_0 0x00000000000000FFUI64 |
#define | BM_2 0x0000000000FF0000UI64 |
#define | BM_45 0x0000FFFF00000000UI64 |
#define | BM_4 0x000000FF00000000UI64 |
#define | BM_6 0x00FF000000000000UI64 |
Functions | |
VOID | RtlInitializeBitMap (IN PRTL_BITMAP BitMapHeader, IN PULONG BitMapBuffer, IN ULONG SizeOfBitMap) |
VOID | RtlClearAllBits (IN PRTL_BITMAP BitMapHeader) |
VOID | RtlSetAllBits (IN PRTL_BITMAP BitMapHeader) |
ULONG | RtlFindClearBits (IN PRTL_BITMAP BitMapHeader, IN ULONG NumberToFind, IN ULONG HintIndex) |
ULONG | RtlFindSetBits (IN PRTL_BITMAP BitMapHeader, IN ULONG NumberToFind, IN ULONG HintIndex) |
ULONG | RtlFindClearBitsAndSet (IN PRTL_BITMAP BitMapHeader, IN ULONG NumberToFind, IN ULONG HintIndex) |
ULONG | RtlFindSetBitsAndClear (IN PRTL_BITMAP BitMapHeader, IN ULONG NumberToFind, IN ULONG HintIndex) |
VOID | RtlClearBits (IN PRTL_BITMAP BitMapHeader, IN ULONG StartingIndex, IN ULONG NumberToClear) |
VOID | RtlSetBits (IN PRTL_BITMAP BitMapHeader, IN ULONG StartingIndex, IN ULONG NumberToSet) |
ULONG | RtlFindClearRuns (IN PRTL_BITMAP BitMapHeader, PRTL_BITMAP_RUN RunArray, ULONG SizeOfRunArray, BOOLEAN LocateLongestRuns) |
ULONG | RtlFindLongestRunClear (IN PRTL_BITMAP BitMapHeader, OUT PULONG StartingIndex) |
ULONG | RtlFindFirstRunClear (IN PRTL_BITMAP BitMapHeader, OUT PULONG StartingIndex) |
ULONG | RtlNumberOfClearBits (IN PRTL_BITMAP BitMapHeader) |
ULONG | RtlNumberOfSetBits (IN PRTL_BITMAP BitMapHeader) |
BOOLEAN | RtlAreBitsClear (IN PRTL_BITMAP BitMapHeader, IN ULONG StartingIndex, IN ULONG Length) |
BOOLEAN | RtlAreBitsSet (IN PRTL_BITMAP BitMapHeader, IN ULONG StartingIndex, IN ULONG Length) |
ULONG | RtlFindNextForwardRunClear (IN PRTL_BITMAP BitMapHeader, IN ULONG FromIndex, IN PULONG StartingRunIndex) |
ULONG | RtlFindLastBackwardRunClear (IN PRTL_BITMAP BitMapHeader, IN ULONG FromIndex, IN PULONG StartingRunIndex) |
CCHAR | RtlFindMostSignificantBit (IN ULONGLONG Set) |
CCHAR | RtlFindLeastSignificantBit (IN ULONGLONG Set) |
Variables | |
CONST CCHAR | RtlpBitsClearAnywhere [] |
CONST CCHAR | RtlpBitsClearLow [] |
CONST CCHAR | RtlpBitsClearHigh [] |
CONST CCHAR | RtlpBitsClearTotal [] |
CONST UCHAR | FillMask [] = { 0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF } |
CONST UCHAR | ZeroMask [] = { 0xFF, 0xFE, 0xFC, 0xF8, 0xf0, 0xe0, 0xc0, 0x80, 0x00 } |
CONST ULONG | FillMaskUlong [] |
|
Definition at line 2916 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2915 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2914 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2912 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2917 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2910 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2911 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2919 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2918 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2906 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2909 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2920 of file rtl/bitmap.c. Referenced by RtlFindLeastSignificantBit(). |
|
Definition at line 2907 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Definition at line 2908 of file rtl/bitmap.c. Referenced by RtlFindMostSignificantBit(). |
|
Value:
Definition at line 112 of file rtl/bitmap.c. Referenced by RtlAreBitsClear(), RtlAreBitsSet(), RtlFindClearBits(), RtlFindClearRuns(), RtlFindSetBits(), RtlNumberOfClearBits(), and RtlNumberOfSetBits(). |
|
Definition at line 105 of file rtl/bitmap.c. Referenced by RtlAreBitsClear(), RtlAreBitsSet(), RtlFindClearBits(), RtlFindClearRuns(), RtlFindSetBits(), RtlNumberOfClearBits(), and RtlNumberOfSetBits(). |
|
Value:
Definition at line 108 of file rtl/bitmap.c. Referenced by RtlAreBitsClear(), RtlAreBitsSet(), RtlFindClearBits(), RtlFindClearRuns(), RtlFindSetBits(), RtlNumberOfClearBits(), and RtlNumberOfSetBits(). |
|
Definition at line 37 of file rtl/bitmap.c. Referenced by RtlClearBits(), and RtlSetBits(). |
|
Definition at line 36 of file rtl/bitmap.c. Referenced by RtlClearBits(), and RtlSetBits(). |
|
Definition at line 2305 of file rtl/bitmap.c. References BitMapHeader, FALSE, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, TRUE, and ZeroMask. Referenced by CmpInitializeHiveList(), main(), and MiAttemptPageFileReduction().
|
|
Definition at line 2464 of file rtl/bitmap.c. References BitMapHeader, FALSE, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, TRUE, and ZeroMask. Referenced by main().
|
|
Definition at line 266 of file rtl/bitmap.c. References BitMapHeader. Referenced by DoBitMapTest(), HvInitializeHive(), HvRefreshHive(), HvSyncHive(), IopCreateSummaryDump(), main(), MiBuildPagedPool(), MiInitializeSessionIds(), MiInitializeSessionPool(), MiInitializeSystemSpaceMap(), MiInitMachineDependent(), NtAllocateUserPhysicalPages(), and NtAllocateVirtualMemory().
|
|
Definition at line 1508 of file rtl/bitmap.c. References ASSERT, BitMapHeader, LeftShiftUlong, and RightShiftUlong. Referenced by DoBitMapTest(), HvFreeHivePartial(), HvMarkClean(), HvRefreshHive(), IopRemovePageFromPageMap(), main(), MiAllocatePoolPages(), MiAttemptPageFileExtension(), MiAttemptPageFileReduction(), MiBuildPagedPool(), MiDereferenceSession(), MiFreePoolPages(), MiGatherPagefilePages(), MiInitializeSessionPool(), MiMapViewInSystemSpace(), MiReleasePageFileSpace(), MiSessionCreateInternal(), MiUnmapViewInSystemSpace(), NtAllocateUserPhysicalPages(), NtCreatePagingFile(), NtFreeUserPhysicalPages(), RtlFindSetBitsAndClear(), and SetHandleFlag().
|
|
Definition at line 345 of file rtl/bitmap.c. References BitMapHeader, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, RtlpBitsClearAnywhere, RtlpBitsClearHigh, RtlpBitsClearLow, TRUE, and ZeroMask. Referenced by RtlFindClearBitsAndSet().
|
|
Definition at line 1382 of file rtl/bitmap.c. References BitMapHeader, RtlFindClearBits(), and RtlSetBits(). Referenced by DoBitMapTest(), main(), MiAllocatePoolPages(), MiGatherPagefilePages(), MiInsertInSystemSpace(), and MiSessionCreateInternal().
|
|
Definition at line 1764 of file rtl/bitmap.c. References BitMapHeader, DbgPrint, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, RtlpBitsClearAnywhere, RtlpBitsClearHigh, RtlpBitsClearLow, and ZeroMask. Referenced by RtlFindLongestRunClear().
|
|
Definition at line 2117 of file rtl/bitmap.c. References BitMapHeader, and RtlFindNextForwardRunClear().
|
|
Definition at line 2779 of file rtl/bitmap.c. References BitMapHeader, End, FillMaskUlong, RTL_PAGED_CODE, and Start.
|
|
Definition at line 2999 of file rtl/bitmap.c. References BM_0, BM_01, BM_0123, BM_2, BM_4, BM_45, BM_6, and RtlpBitsClearLow.
|
|
Definition at line 2071 of file rtl/bitmap.c. References BitMapHeader, RtlFindClearRuns(), and TRUE.
|
|
Definition at line 2923 of file rtl/bitmap.c. References BM_1, BM_23, BM_3, BM_4567, BM_5, BM_67, BM_7, and RtlpBitsClearHigh. Referenced by NtAllocateVirtualMemory(), and NtMapViewOfSection().
|
|
Definition at line 2635 of file rtl/bitmap.c. References BitMapHeader, End, FillMaskUlong, and Start. Referenced by RtlFindFirstRunClear().
|
|
Definition at line 866 of file rtl/bitmap.c. References BitMapHeader, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, RtlpBitSetAnywhere, RtlpBitsSetHigh, RtlpBitsSetLow, TRUE, and ZeroMask. Referenced by MiCleanPhysicalProcessPages(), NtAllocateUserPhysicalPages(), and RtlFindSetBitsAndClear().
|
|
Definition at line 1448 of file rtl/bitmap.c. References BitMapHeader, RtlClearBits(), and RtlFindSetBits(). Referenced by DoBitMapTest().
|
|
Definition at line 219 of file rtl/bitmap.c. References BitMapHeader, and RTL_PAGED_CODE. Referenced by DoBitMapTest(), HvInitializeHive(), HvpAddBin(), HvpBuildMapAndCopy(), HvpInitMap(), HvpRecoverData(), LdrpInitializeProcess(), main(), NtAllocateUserPhysicalPages(), NtAllocateVirtualMemory(), SetHandleFlag(), and UserDeleteW32Process().
|
|
Definition at line 2149 of file rtl/bitmap.c. References BitMapHeader, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, RtlpBitsClearTotal, and ZeroMask. Referenced by main().
|
|
Definition at line 2227 of file rtl/bitmap.c. References BitMapHeader, FillMask, GET_BYTE, GET_BYTE_DECLARATIONS, GET_BYTE_INITIALIZATION, and RtlpBitsSetTotal. Referenced by CmpInitializeHiveList(), HvFreeHivePartial(), HvMarkCellDirty(), HvMarkClean(), HvMarkDirty(), HvpAddBin(), HvpDoWriteHive(), HvpGrowLog1(), HvpGrowLog2(), HvpRecoverData(), HvpWriteLog(), IopCreateSummaryDump(), IopWriteSummaryDump(), and main().
|
|
Definition at line 305 of file rtl/bitmap.c. References BitMapHeader. Referenced by DoBitMapTest(), HvInitializeHive(), HvWriteHive(), main(), MiBuildPagedPool(), MiExtendPagingFileMaximum(), MiInitializeSessionPool(), and NtCreatePagingFile().
|
|
Definition at line 1634 of file rtl/bitmap.c. References ASSERT, BitMapHeader, LeftShiftUlong, and RightShiftUlong. Referenced by CmpInitializeHiveList(), DoBitMapTest(), HvMarkDirty(), IopAddPageToPageMap(), main(), MiAllocatePoolPages(), MiAttemptPageFileReduction(), MiCheckForCrashDump(), NtAllocateUserPhysicalPages(), RtlFindClearBitsAndSet(), and SetHandleFlag().
|
|
Definition at line 213 of file rtl/bitmap.c. Referenced by RtlAreBitsClear(), RtlAreBitsSet(), RtlFindClearBits(), RtlFindClearRuns(), RtlFindSetBits(), and RtlNumberOfSetBits(). |
|
Initial value:
Definition at line 2621 of file rtl/bitmap.c. Referenced by RtlFindLastBackwardRunClear(), and RtlFindNextForwardRunClear(). |
|
Initial value:
Definition at line 122 of file rtl/bitmap.c. Referenced by RtlFindClearBits(), and RtlFindClearRuns(). |
|
Initial value:
Definition at line 168 of file rtl/bitmap.c. Referenced by RtlFindClearBits(), RtlFindClearRuns(), and RtlFindMostSignificantBit(). |
|
Initial value:
Definition at line 145 of file rtl/bitmap.c. Referenced by RtlFindClearBits(), RtlFindClearRuns(), and RtlFindLeastSignificantBit(). |
|
Initial value:
Definition at line 190 of file rtl/bitmap.c. Referenced by RtlNumberOfClearBits(). |
|
Definition at line 215 of file rtl/bitmap.c. Referenced by RtlAreBitsClear(), RtlAreBitsSet(), RtlFindClearBits(), RtlFindClearRuns(), RtlFindSetBits(), and RtlNumberOfClearBits(). |