// video.h
VIDEOPORT_DEPRECATED VIDEOPORT_API VOID VideoPortReleaseCommonBuffer(
[in] IN PVOID HwDeviceExtension,
[in] IN PVP_DMA_ADAPTER VpDmaAdapter,
[in] IN ULONG Length,
[in] IN PHYSICAL_ADDRESS LogicalAddress,
[in] IN PVOID VirtualAddress,
[in] IN BOOLEAN CacheEnabled
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortReleaseCommonBuffer function frees a common buffer that was previously allocated by VideoPortAllocateCommonBuffer.
HwDeviceExtension [in]Pointer to the miniport driver's device extension.
VpDmaAdapter [in]Pointer to the VP_DMA_ADAPTER structure that represents the bus-master adapter. This is the structure returned after a call to VideoPortGetDmaAdapter.
Length [in]Specifies the number of bytes of memory to be freed.
LogicalAddress [in]Specifies the logical address of the buffer to be freed.
VirtualAddress [in]Pointer to the corresponding virtual address of the allocated memory range. This value was obtained in a prior call to VideoPortAllocateCommonBuffer.
CacheEnabled [in]Indicates whether the allocated memory is cached. A value of TRUE indicates that the allocated memory is cached.
None
The parameters passed to VideoPortFreeCommonBuffer must match exactly those passed to and returned from VideoPortAllocateCommonBuffer. A driver cannot free only part of an allocated common buffer.