---
title: commitAGPMemory
framework: kernel
role: pseudoSymbol
path: kernel/ioagpdevice/1811820-commitagpmemory
---

# commitAGPMemory

Makes memory addressable by AGP transactions.

## Declaration

```occ
virtual IOReturn commitAGPMemory(
 IOMemoryDescriptor *memory, 
 IOByteCount agpOffset, 
 IOOptionBits options = 0 ); 
```

## Parameters

- `memory`: A IOMemoryDescriptor object describing the memory to add to the GART.
- `agpOffset`: An offset into AGP space that the caller has allocated - usually allocated by the AGP range allocator.
- `options`: Pass kIOAGPGartInvalidate if the AGP target should invalidate any GART TLB.

## Return Value

Return Value Returns an IOReturn code indicating success or failure.

## Overview

Overview Makes the memory described by the IOMemoryDescriptor object addressable by AGP by entering its pages into the GART array, given an offset into AGP space supplied by the caller (usually allocated by the AGP range allocator). It is the caller's responsibility to prepare non-kernel pageable memory before calling this method, with IOMemoryDescriptor::prepare.

## See Also

### Miscellaneous

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