DoubleCompletion 규칙(kmdf)

DoubleCompletion 규칙은 드라이버가 I/O 요청을 두 번 완료하지 않도록 지정합니다. 동일한 요청에 대해 WdfRequestComplete, WdfRequestCompleteWithInformation, WdfRequestCompleteWithPriorityBoost 메서드를 한 행에 두 번 호출하면 안 됩니다.

이 규칙과 DoubleCompletionLocal 규칙의 차이점은 DoubleCompletionLocal 규칙은 기본 I/O 큐 콜백 함수 내에서만 수행된다는 것입니다.

드라이버 모델: KMDF

테스트 방법

컴파일 시

정적 드라이버 검증 도구를 실행하고 DoubleCompletion 규칙을 지정합니다.

다음 단계를 사용하여 코드 분석을 실행합니다.
  1. 코드를 준비합니다(역할 형식 선언 사용).
  2. 정적 드라이버 검증 도구를 실행합니다.
  3. 결과를 보고 분석합니다.

자세한 내용은 정적 드라이버 검증 도구를 사용하여 드라이버에서 결함 찾기를 참조하세요.

적용 대상

WdfIoQueueRetrieveFoundRequestWdfIoQueueRetrieveNextRequestWdfIoQueueRetrieveRequestByFileObjectWdfRequestCompleteWdfRequestCompleteWithInformationWdfRequestCompleteWithPriorityBoost