WdfDmaEnablerSetMaximumScatterGatherElements 함수(wdfdmaenabler.h)

[KMDF에만 적용]

WdfDmaEnablerSetMaximumScatterGatherElements 메서드는 지정된 DMA 인에이블러 개체에 대해 디바이스가 지원하는 최대 분산/수집 요소 수를 설정합니다.

구문

void WdfDmaEnablerSetMaximumScatterGatherElements(
  [in] WDFDMAENABLER DmaEnabler,
  [in] size_t        MaximumFragments
);

매개 변수

[in] DmaEnabler

드라이버가 WdfDmaEnablerCreate에 대한 이전 호출에서 가져온 DMA 인에이블러 개체에 대한 핸들입니다.

[in] MaximumFragments

드라이버와 디바이스에서 지원할 수 있는 최대 분산/수집 요소 수입니다.

반환 값

없음

설명

드라이버가 잘못된 개체 핸들을 제공하는 경우 버그 검사 발생합니다.

드라이버가 WdfDmaEnablerSetMaximumScatterGatherElements를 호출하는 경우 EvtDriverDeviceAdd 또는 EvtDevicePrepareHardware 콜백 함수 내에서 호출해야 합니다.

드라이버가 WdfDmaEnablerSetMaximumScatterGatherElements를 호출하지 않는 경우 프레임워크는 기본값인 WDF_DMA_ENABLER_UNLIMITED_FRAGMENTS 사용합니다. 즉, 분산/수집 요소 수에 제한이 없습니다.

이 메서드에 대한 자세한 내용은 DMA 트랜잭션 사용을 참조하세요.

예제

다음 코드 예제에서는 지정된 DMA 인에이블러 개체에 대한 최대 분산/수집 요소 수를 설정합니다.

WdfDmaEnablerSetMaximumScatterGatherElements(
                                             DmaEnabler, 
                                             NIC_MAX_PHYS_BUF_COUNT
                                             );

요구 사항

요구 사항
대상 플랫폼 유니버설
최소 KMDF 버전 1.0
머리글 wdfdmaenabler.h(Wdf.h 포함)
라이브러리 Wdf01000.sys(프레임워크 라이브러리 버전 관리 참조)
IRQL PASSIVE_LEVEL
DDI 규정 준수 규칙 DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

추가 정보

WdfDmaEnablerCreate

WdfDmaEnablerGetMaximumScatterGatherElements