---
title: checkMemoryInRange
framework: kernel
role: pseudoSymbol
path: kernel/iofwphysicaladdressspace/1812923-checkmemoryinrange
---

# checkMemoryInRange

Validates the IOMemoryDescriptor, which is used to initialize the PhysicalAddressSpace.

## Declaration

```occ
IOReturn checkMemoryInRange(
 IOMemoryDescriptor *memory ); 
```

## Parameters

- `memory`: Points to a valid IOMemoryDescriptor.

## Return Value

Return Value returns kIOReturnSuccess on success

## See Also

### Miscellaneous

- [complete](kernel/iofwphysicaladdressspace/1812928-complete.md)
- [doRead](kernel/iofwphysicaladdressspace/1812935-doread.md)
- [doWrite](kernel/iofwphysicaladdressspace/1812940-dowrite.md)
- [getDMACommand](kernel/iofwphysicaladdressspace/1812943-getdmacommand.md)
- [getLength](kernel/iofwphysicaladdressspace/1812947-getlength.md)
- [getMemoryDescriptor](kernel/iofwphysicaladdressspace/1812953-getmemorydescriptor.md)
- [getSegments](kernel/iofwphysicaladdressspace/1812956-getsegments.md)
- [init](kernel/iofwphysicaladdressspace/1812960-init.md)
- [initWithDesc](kernel/iofwphysicaladdressspace/1812962-initwithdesc.md)
- [initWithDMACommand](kernel/iofwphysicaladdressspace/1812968-initwithdmacommand.md)
- [isPrepared](kernel/iofwphysicaladdressspace/1812974-isprepared.md)
- [prepare](kernel/iofwphysicaladdressspace/1812981-prepare.md)
- [setDMACommand](kernel/iofwphysicaladdressspace/1812990-setdmacommand.md)
- [setMemoryDescriptor](kernel/iofwphysicaladdressspace/1813001-setmemorydescriptor.md)
- [synchronize](kernel/iofwphysicaladdressspace/1813014-synchronize.md)
