HalFreeCommonBuffer (Compact 2013)
3/26/2014
This function frees a common buffer allocated by HalAllocateCommonBuffer, along with all resources the buffer uses.
Syntax
VOID HalFreeCommonBuffer(
PDMA_ADAPTER_OBJECT DmaAdapter,
ULONG Length,
PHYSICAL_ADDRESS LogicalAddress,
PVOID VirtualAddress,
BOOLEAN CacheEnabled
);
Parameters
- DmaAdapter
[in] Pointer to DMA adapter descriptor, DMA_ADAPTER_OBJECT.
- Length
[in] Size of buffer to allocate.
- LogicalAddress
[in] Pointer to the bus-relative, logical address buffer.
- VirtualAddress
[in] Pointer to virtual address buffer.
- CacheEnabled
[in] Flag to choose cached or uncached buffer allocation.
Return Value
None.
Remarks
The only required parameter is VirtualAddress, which points to the allocated buffer.
Requirements
Header |
ceddk.h |
Library |
CEDDK.lib |
See Also
Reference
Ceddk.dll DMA Functions
DMA_ADAPTER_OBJECT
HalAllocateCommonBuffer