releaseAGPMemory
Releases memory addressable by AGP transactions.
Declaration
virtual IOReturn releaseAGPMemory(
IOMemoryDescriptor *memory,
IOByteCount agpOffset,
IOOptionBits options = 0 );Parameters
- memory:
A IOMemoryDescriptor object describing the memory to remove from 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
Returns an IOReturn code indicating success or failure.
Overview
Makes the memory described by the IOMemoryDescriptor object unaddressable by AGP by removing its pages from 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 complete non-kernel pageable memory before calling this method, with IOMemoryDescriptor::complete.