INDCompletionQueue::Resize Method

Modifies the number of result entries that a completion queue supports.

Syntax

HRESULT Resize(
  [in]  SIZE_T nEntries
);

Parameters

  • nEntries [in]
    The new number of result entries.

Return Value

When you implement this method, you should return the following return values. If you return others, try to use well-known values to aid in debugging issues.

Return code Description
ND_SUCCESS

The operation succeeded.

ND_INSUFFICIENT_RESOURCES

The requested number of entries could not be allocated.

ND_INVALID_PARAMETER

The requested number of entries exceeds the capabilities of the hardware.

ND_DEVICE_REMOVED

The underlying Network Direct adapter was removed from the system. Only cleanup operations on the Network Direct adapter will succeed.

 

Remarks

To get the limits supported by a Network Direct adapter, call the INDAdapter::Query method.

You can increase or decrease the size of the queue. If the number you specify is less than the number of results in the queue, the method returns ND_BUFFER_OVERFLOW (the queue remains unchanged).

Requirements

Product

Microsoft Message Passing Interface (MS-MPI)

Header

Ndspi.h

See Also

INDCompletionQueue

 

 

Send comments about this topic to Microsoft

Build date: 7/2/2010