Previous Next

IDmaChannel::BufferSize

The BufferSize method returns the size in bytes of the DMA channel's data buffer.

ULONG
  BufferSize(
    VOID
    );

Parameters

None

Return Value

BufferSize returns the size in bytes of the buffer.

Headers

Declared in portcls.h. Include portcls.h.

Comments

The BufferSize method returns the buffer size that was set by the previous call to IDmaChannel::SetBufferSize. If SetBufferSize has not been called since the IDmaChannel::AllocateBuffer call, BufferSize returns the allocated buffer size. The DMA-channel object does not actually use this value internally. This value is maintained by the object to allow its various clients to communicate the intended size of the buffer. This call is often used to obtain the map-size parameter to the IDmaChannelSlave::Start method.

The BufferSize method can be called at any IRQL.

See Also

IDmaChannel::SetBufferSize, IDmaChannel::AllocateBuffer, IDmaChannelSlave::Start