VideoPortReleaseCommonBuffer - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportreleasecommonbuffer)

VideoPortReleaseCommonBuffer function

Description

The VideoPortReleaseCommonBuffer function frees a common buffer that was previously allocated by VideoPortAllocateCommonBuffer.

Parameters

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.

Return value

None

Remarks

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.

See also

VP_DMA_ADAPTER

VideoPortAllocateCommonBuffer

VideoPortGetDmaAdapter