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

Function Ext2AllocateExtent

Ext4Fsd/memory.c:487–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487PEXT2_EXTENT
488Ext2AllocateExtent ()
489{
490 PEXT2_EXTENT Extent;
491
492 Extent = (PEXT2_EXTENT)ExAllocateFromNPagedLookasideList(
493 &(Ext2Global->Ext2ExtLookasideList));
494 if (!Extent) {
495 return NULL;
496 }
497
498 RtlZeroMemory(Extent, sizeof(EXT2_EXTENT));
499 INC_MEM_COUNT(PS_EXTENT, Extent, sizeof(EXT2_EXTENT));
500
501 return Extent;
502}
503
504VOID
505Ext2FreeExtent (IN PEXT2_EXTENT Extent)

Callers 2

Ext2BuildExtentsFunction · 0.85
Ext2WriteVolumeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected