Share via


HalFreeCommonBuffer

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

  • 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

DMA_ADAPTER_OBJECT
HalAllocateCommonBuffer

Concepts

Direct Memory Access