KSMAPPING - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

typedef struct _KSMAPPING {
  PHYSICAL_ADDRESS PhysicalAddress;
  ULONG            ByteCount;
  ULONG            Alignment;
} KSMAPPING, *PKSMAPPING;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ks-_ksmapping)

_KSMAPPING structure

Description

The KSMAPPING structure is used to describe a single contiguous chunk of physical memory for use in scatter/gather DMA operations.

Members

PhysicalAddress

This member contains the physical address of this piece of the data frame.

ByteCount

This member contains the number of bytes of contiguous physical memory in this individual mapping.

Alignment

This member specifies the memory alignment in bytes for this buffer.

Remarks

In order for minidrivers to use this structure within the stream pointer offsets, the pin for which this is referring must specify scatter/gather DMA mapping generation through KSPIN_FLAG_GENERATE_MAPPINGS and the client must register its DMA adapter object with AVStream using KsDeviceRegisterAdapterObject. See AVStream DMA Services. The KSPIN_FLAG_GENERATE_MAPPINGS flag is defined on the KSPIN_DESCRIPTOR_EX reference page.

See also

KSSTREAM_POINTER_OFFSET

KsDeviceRegisterAdapterObject