NdisAllocateMemoryWithTagPriority 規則 (ndis)

NdisAllocateMemoryWithTagPriority 規則會指定驅動程式不得呼叫 NdisAllocateMemoryWithTagPriority 而不提供 Tag

每個記憶體配置都應該使用唯一的集區標籤,以確保核心調試程式和驅動程式驗證程式可以識別不同的配置記憶體區塊。

驅動程式模型:NDIS

測試方法

在編譯時期

執行 靜態驅動程式驗證器 ,並指定 NdisAllocateMemoryWithTagPriority 規則。

使用下列步驟來執行程式碼的分析:
  1. 準備程式代碼 (使用角色類型宣告) 。
  2. 執行靜態驅動程式驗證程式。
  3. 檢視和分析結果。

如需詳細資訊,請參閱 使用靜態驅動程式驗證器在驅動程式中尋找瑕疵

適用於

NdisAllocateMemoryWithTagPriority