---
title: getAGPSpace
framework: kernel
role: pseudoSymbol
path: kernel/ioagpdevice/1811914-getagpspace
---

# getAGPSpace

Returns the allocated AGP space.

## Declaration

```occ
virtual IOReturn getAGPSpace(
 IOPhysicalAddress *address, 
 IOPhysicalLength *length ); 
```

## Parameters

- `address`: The physical range allocated for the AGP space is passed back to the caller. Zero may be passed if the address is not needed by the caller.
- `length`: The size of the the AGP space created is passed back. Zero may be passed if the length is not needed by the caller.

## Return Value

Return Value Returns an IOReturn code indicating success or failure.

## Overview

Overview This method can be called by the driver for the AGP primary device to retrieve the physical address and size of the space created with createAGPSpace.

## See Also

### Miscellaneous

- [commitAGPMemory](kernel/ioagpdevice/1811820-commitagpmemory.md)
- [createAGPSpace](kernel/ioagpdevice/1811842-createagpspace.md)
- [destroyAGPSpace](kernel/ioagpdevice/1811870-destroyagpspace.md)
- [getAGPRangeAllocator](kernel/ioagpdevice/1811894-getagprangeallocator.md)
- [getAGPStatus](kernel/ioagpdevice/1811928-getagpstatus.md)
- [releaseAGPMemory](kernel/ioagpdevice/1811943-releaseagpmemory.md)
