HalFreeCommonBuffer (Windows Embedded CE 6.0)
1/6/2010
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 |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
CEDDK Dynamic-Link Library DMA Functions
DMA_ADAPTER_OBJECT
HalAllocateCommonBuffer