#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ CmpAllocateDelayItem()
Definition at line 199 of file cmalloc.c.
200{
206
207
209
210
211SearchList:
213 {
214
216
217
219
220
222
223
225
226
229
230
233 }
234
235
237 if (AllocPage)
238 {
239
241
242
244 {
245
251
252
254 }
255
256
257 goto SearchList;
258 }
259
260
263}
PVOID NTAPI CmpAllocate(IN SIZE_T Size, IN BOOLEAN Paged, IN ULONG Tag)
struct _CM_DELAY_ALLOC CM_DELAY_ALLOC
#define CM_DELAYS_PER_PAGE
#define CmpGetAllocPageFromDelayAlloc(a)
LIST_ENTRY CmpFreeDelayItemsListHead
KGUARDED_MUTEX CmpDelayAllocBucketLock
#define InsertTailList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define RemoveHeadList(ListHead)
GLsizei GLenum const GLvoid GLsizei GLenum 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 const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID FASTCALL KeReleaseGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
VOID FASTCALL KeAcquireGuardedMutex(IN PKGUARDED_MUTEX GuardedMutex)
#define FIELD_OFFSET(t, f)
#define CONTAINING_RECORD(address, type, field)
Referenced by CmpAddToDelayedClose(), and CmpDelayDerefKeyControlBlock().
◆ CmpAllocateKeyControlBlock()
Definition at line 111 of file cmalloc.c.
112{
118
119
121 {
122
124
125
126SearchKcbList:
128 {
129
131
132
135 FreeListEntry);
136
137
139
140
143
144
146
147
149
150
151 return CurrentKcb;
152 }
153
154
156 if (AllocPage)
157 {
158
160
161
163 {
164
168
169
174 }
175
176
177 goto SearchKcbList;
178 }
179
180
182 }
183
184
186 if (CurrentKcb)
187 {
188
191 }
192
193
194 return CurrentKcb;
195}
struct _CM_KEY_CONTROL_BLOCK CM_KEY_CONTROL_BLOCK
#define CmpGetAllocPageFromKcb(k)
LIST_ENTRY CmpFreeKCBListHead
KGUARDED_MUTEX CmpAllocBucketLock
Referenced by CmpCreateKeyControlBlock().
◆ CmpFreeDelayItem()
Definition at line 267 of file cmalloc.c.
268{
273
274
276
277
279
280
283
284
286 {
287
289 {
290
295 }
296
297
299 }
300
301
303}
VOID NTAPI CmpFree(IN PVOID Ptr, IN ULONG Quota)
struct _CM_DELAY_ALLOC * PCM_DELAY_ALLOC
#define RemoveEntryList(Entry)
Referenced by _Function_class_(), and CmpRemoveFromDelayedClose().
◆ CmpFreeKeyControlBlock()
◆ CmpInitCmPrivateAlloc()
Definition at line 29 of file cmalloc.c.
30{
31
33 {
34
38 }
39}
#define InitializeListHead(ListHead)
VOID FASTCALL KeInitializeGuardedMutex(OUT PKGUARDED_MUTEX GuardedMutex)
Referenced by CmInitSystem1().
◆ CmpInitCmPrivateDelayAlloc()
◆ CmpAllocBucketLock
◆ CmpAllocInited
◆ CmpDelayAllocBucketLock
◆ CmpFreeDelayItemsListHead
◆ CmpFreeKCBListHead