MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2DeQueueRequest

Function Ext2DeQueueRequest

Ext4Fsd/dispatch.c:177–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176
177VOID
178Ext2DeQueueRequest (IN PVOID Context)
179{
180 PEXT2_IRP_CONTEXT IrpContext;
181
182 IrpContext = (PEXT2_IRP_CONTEXT) Context;
183
184 ASSERT(IrpContext);
185
186 ASSERT((IrpContext->Identifier.Type == EXT2ICX) &&
187 (IrpContext->Identifier.Size == sizeof(EXT2_IRP_CONTEXT)));
188
189 __try {
190
191 __try {
192
193 FsRtlEnterFileSystem();
194
195 if (!IrpContext->IsTopLevel) {
196 IoSetTopLevelIrp((PIRP) FSRTL_FSP_TOP_LEVEL_IRP);
197 }
198
199 Ext2DispatchRequest(IrpContext);
200
201 } __except (Ext2ExceptionFilter(IrpContext, GetExceptionInformation())) {
202
203 Ext2ExceptionHandler(IrpContext);
204 }
205
206 } __finally {
207
208 IoSetTopLevelIrp(NULL);
209
210 FsRtlExitFileSystem();
211 }
212}
213
214
215NTSTATUS

Callers

nothing calls this directly

Calls 3

Ext2DispatchRequestFunction · 0.85
Ext2ExceptionFilterFunction · 0.85
Ext2ExceptionHandlerFunction · 0.85

Tested by

no test coverage detected