Previous Next

IDmaChannel::SetBufferSize

The SetBufferSize method sets the DMA channel's current buffer size.

void
  SetBufferSize(
    ULONG  BufferSize
    );

Parameters

BufferSize
Specifies the buffer's current size in bytes.

Return Value

None

Headers

Declared in portcls.h. Include portcls.h.

Comments

The SetBufferSize method is used to change the size of a buffer that was previously allocated by the IDmaChannel::AllocateBuffer method. After the call to AllocateBuffer and before SetBufferSize is called, the IDmaChannel::BufferSize returns the actual size of the allocated buffer. After SetBufferSize is called, BufferSize returns the size specified in the SetBufferSize call. The DMA-channel object does not actually use this value internally. The current buffer size is maintained by the object to allow its various clients to communicate the intended size of the buffer.

Callers of SetBufferSize can run at any IRQL.

See Also

IDmaChannel::AllocateBuffer, IDmaChannel::BufferSize