ReactOS  r74006
mm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _MI_PAGING_LEVELS   2
 
#define MI_USER_PROBE_ADDRESS   (PVOID)0x7FFF0000
 
#define MI_DEFAULT_SYSTEM_RANGE_START   (PVOID)0x80000000
 
#define HYPER_SPACE   0xC0500000
 
#define HYPER_SPACE_END   0xC08FFFFF
 
#define MI_SYSTEM_CACHE_WS_START   (PVOID)0xC0C00000
 
#define MI_PAGED_POOL_START   (PVOID)0xE1000000
 
#define MI_NONPAGED_POOL_END   (PVOID)0xFFBE0000
 
#define MI_DEBUG_MAPPING   (PVOID)0xFFBFF000
 
#define PTE_PER_PAGE   256
 
#define PDE_PER_PAGE   4096
 
#define PPE_PER_PAGE   1
 
#define MI_SYSTEM_PTE_BASE   (PVOID)MiAddressToPte(NULL)
 
#define MM_HIGHEST_VAD_ADDRESS   (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE))
 
#define MI_MAPPING_RANGE_START   ((ULONG)HYPER_SPACE)
 
#define MI_MAPPING_RANGE_END
 
#define MI_DUMMY_PTE
 
#define MI_VAD_BITMAP
 
#define MI_WORKING_SET_LIST
 
#define MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING   ((255 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_TUNING   ((19 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_BOOST   ((32 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_BOOST_BOOST   ((256 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_INIT_PAGED_POOLSIZE   (32 * _1MB)
 
#define MI_MAX_INIT_NONPAGED_POOL_SIZE   (128 * _1MB)
 
#define MI_MAX_NONPAGED_POOL_SIZE   (128 * _1MB)
 
#define MI_SYSTEM_VIEW_SIZE   (32 * _1MB)
 
#define MI_SESSION_VIEW_SIZE   (48 * _1MB)
 
#define MI_SESSION_POOL_SIZE   (16 * _1MB)
 
#define MI_SESSION_IMAGE_SIZE   (8 * _1MB)
 
#define MI_SESSION_WORKING_SET_SIZE   (4 * _1MB)
 
#define MI_SESSION_SIZE
 
#define MI_MIN_ALLOCATION_FRAGMENT   (4 * _1KB)
 
#define MI_ALLOCATION_FRAGMENT   (64 * _1KB)
 
#define MI_MAX_ALLOCATION_FRAGMENT   (2 * _1MB)
 
#define MM_PTE_SOFTWARE_PROTECTION_BITS   6
 
#define MI_MIN_SECONDARY_COLORS   8
 
#define MI_SECONDARY_COLORS   64
 
#define MI_MAX_SECONDARY_COLORS   1024
 
#define MI_MAX_FREE_PAGE_LISTS   4
 
#define MI_HYPERSPACE_PTES   (256 - 1) /* Dee PDR definition */
 
#define MI_ZERO_PTES   (32) /* Dee PDR definition */
 
#define MI_MAX_ZERO_BITS   21
 
#define SESSION_POOL_LOOKASIDES   26
 
#define MM_EMPTY_PTE_LIST   ((ULONG)0xFFFFF)
 
#define MM_EMPTY_LIST   ((ULONG_PTR)-1)
 
#define PFN_FROM_PTE(v)   ((v)->u.Hard.PageFrameNumber)
 
#define MI_MAKE_DIRTY_PAGE(x)
 
#define MI_MAKE_CLEAN_PAGE(x)
 
#define MI_MAKE_ACCESSED_PAGE(x)
 
#define MI_PAGE_DISABLE_CACHE(x)   ((x)->u.Hard.Cached = 0)
 
#define MI_PAGE_WRITE_THROUGH(x)   ((x)->u.Hard.Buffered = 0)
 
#define MI_PAGE_WRITE_COMBINED(x)   ((x)->u.Hard.Buffered = 1)
 
#define MI_IS_PAGE_LARGE(x)   FALSE
 
#define MI_IS_PAGE_WRITEABLE(x)   ((x)->u.Hard.ReadOnly == 0)
 
#define MI_IS_PAGE_COPY_ON_WRITE(x)   FALSE
 
#define MI_IS_PAGE_DIRTY(x)   TRUE
 
#define MI_MAKE_OWNER_PAGE(x)   ((x)->u.Hard.Owner = 1)
 
#define MI_MAKE_WRITE_PAGE(x)   ((x)->u.Hard.ReadOnly = 0)
 
#define MiAddressToPte(x)   ((PMMPTE)(PTE_BASE + (((ULONG)(x) >> 12) << 2)))
 
#define MiAddressToPde(x)   ((PMMPDE)(PDE_BASE + (((ULONG)(x) >> 20) << 2)))
 
#define MiAddressToPteOffset(x)   ((((ULONG)(x)) << 12) >> 24)
 
#define MiAddressToPdeOffset(x)   (((ULONG)(x)) >> 20)
 
#define MiGetPdeOffset   MiAddressToPdeOffset
 
#define MiPteToAddress(_Pte)   ((PVOID)((ULONG)(_Pte) << 10))
 
#define MiPdeToAddress(_Pde)   ((PVOID)((ULONG)(_Pde) << 18))
 
#define MiPdeToPte(_Pde)   ((PMMPTE)0) /* FIXME */
 
#define MiPteToPde(_Pte)   ((PMMPDE)0) /* FIXME */
 
#define MiIsPteOnPdeBoundary(PointerPte)   ((((ULONG_PTR)PointerPte) & (PAGE_SIZE - 1)) == 0)
 
#define MiProtoPteToPte(x)
 
#define MiSubsectionPteToSubsection(x)
 
#define CPT_SHIFT   10
 
#define MI_ZERO_PTE
 

Macro Definition Documentation

#define _MI_PAGING_LEVELS   2

Definition at line 6 of file mm.h.

#define CPT_SHIFT   10
#define HYPER_SPACE   0xC0500000

Definition at line 11 of file mm.h.

#define HYPER_SPACE_END   0xC08FFFFF

Definition at line 12 of file mm.h.

#define MI_ALLOCATION_FRAGMENT   (64 * _1KB)

Definition at line 54 of file mm.h.

#define MI_DEBUG_MAPPING   (PVOID)0xFFBFF000

Definition at line 16 of file mm.h.

#define MI_DEFAULT_SYSTEM_RANGE_START   (PVOID)0x80000000

Definition at line 10 of file mm.h.

#define MI_DUMMY_PTE
Value:
#define MI_MAPPING_RANGE_END
Definition: mm.h:27
struct _MMPTE * PMMPTE
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 29 of file mm.h.

#define MI_HYPERSPACE_PTES   (256 - 1) /* Dee PDR definition */

Definition at line 63 of file mm.h.

#define MI_IS_PAGE_COPY_ON_WRITE (   x)    FALSE

Definition at line 85 of file mm.h.

#define MI_IS_PAGE_DIRTY (   x)    TRUE

Definition at line 86 of file mm.h.

#define MI_IS_PAGE_LARGE (   x)    FALSE

Definition at line 83 of file mm.h.

#define MI_IS_PAGE_WRITEABLE (   x)    ((x)->u.Hard.ReadOnly == 0)

Definition at line 84 of file mm.h.

#define MI_MAKE_ACCESSED_PAGE (   x)

Definition at line 79 of file mm.h.

#define MI_MAKE_CLEAN_PAGE (   x)

Definition at line 78 of file mm.h.

#define MI_MAKE_DIRTY_PAGE (   x)

Definition at line 77 of file mm.h.

#define MI_MAKE_OWNER_PAGE (   x)    ((x)->u.Hard.Owner = 1)

Definition at line 87 of file mm.h.

#define MI_MAKE_WRITE_PAGE (   x)    ((x)->u.Hard.ReadOnly = 0)

Definition at line 88 of file mm.h.

#define MI_MAPPING_RANGE_END
Value:
#define MI_HYPERSPACE_PTES
Definition: mm.h:63
#define PAGE_SIZE
Definition: env_spec_w32.h:49
#define MI_MAPPING_RANGE_START
Definition: mm.h:26

Definition at line 27 of file mm.h.

#define MI_MAPPING_RANGE_START   ((ULONG)HYPER_SPACE)

Definition at line 26 of file mm.h.

#define MI_MAX_ALLOCATION_FRAGMENT   (2 * _1MB)

Definition at line 55 of file mm.h.

#define MI_MAX_FREE_PAGE_LISTS   4

Definition at line 62 of file mm.h.

#define MI_MAX_INIT_NONPAGED_POOL_SIZE   (128 * _1MB)

Definition at line 42 of file mm.h.

#define MI_MAX_NONPAGED_POOL_SIZE   (128 * _1MB)

Definition at line 43 of file mm.h.

#define MI_MAX_SECONDARY_COLORS   1024

Definition at line 61 of file mm.h.

#define MI_MAX_ZERO_BITS   21

Definition at line 65 of file mm.h.

#define MI_MIN_ALLOCATION_FRAGMENT   (4 * _1KB)

Definition at line 53 of file mm.h.

#define MI_MIN_INIT_PAGED_POOLSIZE   (32 * _1MB)

Definition at line 41 of file mm.h.

#define MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING   ((255 * _1MB) >> PAGE_SHIFT)

Definition at line 37 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_BOOST   ((32 * _1MB) >> PAGE_SHIFT)

Definition at line 39 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_BOOST_BOOST   ((256 * _1MB) >> PAGE_SHIFT)

Definition at line 40 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_TUNING   ((19 * _1MB) >> PAGE_SHIFT)

Definition at line 38 of file mm.h.

#define MI_MIN_SECONDARY_COLORS   8

Definition at line 59 of file mm.h.

#define MI_NONPAGED_POOL_END   (PVOID)0xFFBE0000

Definition at line 15 of file mm.h.

#define MI_PAGE_DISABLE_CACHE (   x)    ((x)->u.Hard.Cached = 0)

Definition at line 80 of file mm.h.

#define MI_PAGE_WRITE_COMBINED (   x)    ((x)->u.Hard.Buffered = 1)

Definition at line 82 of file mm.h.

#define MI_PAGE_WRITE_THROUGH (   x)    ((x)->u.Hard.Buffered = 0)

Definition at line 81 of file mm.h.

#define MI_PAGED_POOL_START   (PVOID)0xE1000000

Definition at line 14 of file mm.h.

#define MI_SECONDARY_COLORS   64

Definition at line 60 of file mm.h.

#define MI_SESSION_IMAGE_SIZE   (8 * _1MB)

Definition at line 47 of file mm.h.

#define MI_SESSION_POOL_SIZE   (16 * _1MB)

Definition at line 46 of file mm.h.

#define MI_SESSION_SIZE
Value:
#define MI_SESSION_POOL_SIZE
Definition: mm.h:46
#define MI_SESSION_WORKING_SET_SIZE
Definition: mm.h:48
#define MI_SESSION_IMAGE_SIZE
Definition: mm.h:47
#define MI_SESSION_VIEW_SIZE
Definition: mm.h:45

Definition at line 49 of file mm.h.

#define MI_SESSION_VIEW_SIZE   (48 * _1MB)

Definition at line 45 of file mm.h.

#define MI_SESSION_WORKING_SET_SIZE   (4 * _1MB)

Definition at line 48 of file mm.h.

#define MI_SYSTEM_CACHE_WS_START   (PVOID)0xC0C00000

Definition at line 13 of file mm.h.

#define MI_SYSTEM_PTE_BASE   (PVOID)MiAddressToPte(NULL)

Definition at line 23 of file mm.h.

#define MI_SYSTEM_VIEW_SIZE   (32 * _1MB)

Definition at line 44 of file mm.h.

#define MI_USER_PROBE_ADDRESS   (PVOID)0x7FFF0000

Definition at line 9 of file mm.h.

#define MI_VAD_BITMAP
Value:
#define MI_DUMMY_PTE
Definition: mm.h:29
struct _MMPTE * PMMPTE
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 31 of file mm.h.

#define MI_WORKING_SET_LIST
Value:
struct _MMPTE * PMMPTE
#define MI_VAD_BITMAP
Definition: mm.h:31
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 33 of file mm.h.

#define MI_ZERO_PTE
Value:
#define MI_MAPPING_RANGE_END
Definition: mm.h:27
struct _MMPTE * PMMPTE
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 144 of file mm.h.

#define MI_ZERO_PTES   (32) /* Dee PDR definition */

Definition at line 64 of file mm.h.

#define MiAddressToPde (   x)    ((PMMPDE)(PDE_BASE + (((ULONG)(x) >> 20) << 2)))

Definition at line 95 of file mm.h.

#define MiAddressToPdeOffset (   x)    (((ULONG)(x)) >> 20)

Definition at line 103 of file mm.h.

#define MiAddressToPte (   x)    ((PMMPTE)(PTE_BASE + (((ULONG)(x) >> 12) << 2)))

Definition at line 91 of file mm.h.

#define MiAddressToPteOffset (   x)    ((((ULONG)(x)) << 12) >> 24)

Definition at line 99 of file mm.h.

#define MiGetPdeOffset   MiAddressToPdeOffset

Definition at line 105 of file mm.h.

#define MiIsPteOnPdeBoundary (   PointerPte)    ((((ULONG_PTR)PointerPte) & (PAGE_SIZE - 1)) == 0)

Definition at line 116 of file mm.h.

#define MiPdeToAddress (   _Pde)    ((PVOID)((ULONG)(_Pde) << 18))

Definition at line 109 of file mm.h.

#define MiPdeToPte (   _Pde)    ((PMMPTE)0) /* FIXME */

Definition at line 112 of file mm.h.

#define MiProtoPteToPte (   x)
Value:
(((x)->u.Proto.ProtoAddressHigh << 9) | (x)->u.Proto.ProtoAddressLow << 2))
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint 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 GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
PVOID MmPagedPoolStart
Definition: miarm.h:552
INT x
Definition: msvc.h:62

Definition at line 122 of file mm.h.

#define MiPteToAddress (   _Pte)    ((PVOID)((ULONG)(_Pte) << 10))

Definition at line 108 of file mm.h.

#define MiPteToPde (   _Pte)    ((PMMPDE)0) /* FIXME */

Definition at line 113 of file mm.h.

#define MiSubsectionPteToSubsection (   x)
Value:
((x)->u.Subsect.WhichPool == PagedPool) ? \
(((x)->u.Subsect.SubsectionAddressHigh << 7) | \
(x)->u.Subsect.SubsectionAddressLow << 3)) : \
(((x)->u.Subsect.SubsectionAddressHigh << 7) | \
(x)->u.Subsect.SubsectionAddressLow << 3))
ULONG_PTR MmSubsectionBase
Definition: section.c:138
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint 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 GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
PVOID MmNonPagedPoolEnd
Definition: mminit.c:99
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
#define ULONG_PTR
Definition: config.h:101
INT x
Definition: msvc.h:62

Definition at line 129 of file mm.h.

#define MM_EMPTY_LIST   ((ULONG_PTR)-1)

Definition at line 70 of file mm.h.

#define MM_EMPTY_PTE_LIST   ((ULONG)0xFFFFF)

Definition at line 69 of file mm.h.

#define MM_HIGHEST_VAD_ADDRESS   (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE))

Definition at line 24 of file mm.h.

#define MM_PTE_SOFTWARE_PROTECTION_BITS   6

Definition at line 58 of file mm.h.

#define PDE_PER_PAGE   4096

Definition at line 19 of file mm.h.

Referenced by MiBuildPfnDatabaseFromPageTables().

#define PFN_FROM_PTE (   v)    ((v)->u.Hard.PageFrameNumber)

Definition at line 74 of file mm.h.

#define PPE_PER_PAGE   1

Definition at line 20 of file mm.h.

Referenced by MiBuildPfnDatabaseFromPageTables().

#define SESSION_POOL_LOOKASIDES   26

Definition at line 66 of file mm.h.