VideoPortReleaseCommonBuffer 函式 (video.h)
VideoPortReleaseCommonBuffer 函式會釋放先前由 VideoPortAllocateCommonBuffer配置的通用緩衝區。
語法
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
);
參數
[in] HwDeviceExtension
迷你埠驅動程式裝置延伸模組的指標。
[in] VpDmaAdapter
表示總線主要配接器之 VP_DMA_ADAPTER 結構的指標。 這是呼叫 videoPortGetDmaAdapter之後傳回的結構。
[in] Length
指定要釋放的記憶體位元組數目。
[in] LogicalAddress
指定要釋放之緩衝區的邏輯位址。
[in] VirtualAddress
所配置記憶體範圍的對應虛擬位址指標。 這個值是在呼叫 videoPortAllocateCommonBuffer之前呼叫中取得的。
[in] CacheEnabled
指出是否已快取配置的記憶體。 true 值 表示已配置的記憶體已快取。
傳回值
沒有
言論
傳遞至 VideoPortFreeCommonBuffer 的參數必須完全符合傳遞至 VideoPortAllocateCommonBuffer 傳回的參數。 驅動程式不能只釋放已配置之通用緩衝區的一部分。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | 適用於 Windows XP 和更新版本的 Windows作系統。 |
目標平臺 | 桌面 |
標頭 | video.h (include Video.h, Ntdef.h) |
連結庫 | Videoprt.lib |
DLL | Videoprt.sys |
IRQL | PASSIVE_LEVEL |