Allocates a receive buffer set which is compatible with the network device. The allocated buffer set will be passed to hpeAttachReceiveBufferSet. The allocated structure must be freed using hpeFreeReceiveBufferSet.
HPESTATUS hpeAllocateReceiveBufferSet( HPEHANDLE devhandle, HPERXBUFFERSET ** rx_buffer_set, DWORD buffer_count, DWORD buffer_size );
devhandle
rx_buffer_set
buffer_count
(the number of receiving packets at a time) + 1
, because some of the drivers only receive packets one less than the number of attached buffers due to the limitation of their ring buffer structure.
buffer_size
A status value indicating the success or failure of the operation:
E_OK |
The operation completed successfully. |
E_EXIST |
The handle given is not a handle for an open HPE interface. |
E_PARAM |
One of the fields rx_buffer_set or buffer_size is not valid. |
E_LIMIT |
The buffer_size parameter is out of range. |
E_MEM |
Not enough heap memory to allocate the buffer set. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 4.0 | intime/rt/include/hpeif2.h | hpeif2.h | hpeif2.lib |