cpia_txnotify

Processes an asynchronous transmit completion message received from the TX board.

Prototype

void cpia_txnotify ( TX_HANDLE handle, void *chkey, CPIPKT *buffer, void *user_tx_key, CPI_ERR_TYPE ccode)

Argument

Description

handle

TX_HANDLE associated with the asynchronous transmit completion.

chkey

Pointer to the channel key provided when the handle was opened.

buffer

CPIPKT buffer pointer provided when cpia_send was called.

user_tx_key

Pointer to the user key provided when cpia_send was called.

ccode

I/O completion code.


Details

Provide cpia_txnotify as a parameter to cpia_open. The CPI library calls this function as a result of a call to cpia_intr when previously issued transmit requests (with cpia_send) complete for the given channel. When cpia_txnotify is called, or any time thereafter, the application can free the corresponding CPIPKT passed in on cpia_send. Failure to adhere to this rule results in communications errors.

Provide cpia_txnotify as a parameter to cpia_open or as a configuration field to cpix_open. The CPI library calls this function as a result of a call to cpia_intr when previously issued transmit requests (with cpia_send) complete for the given channel. When cpia_txnotify is called, or any time thereafter, the application can free the corresponding CPIPKT passed in on cpia_send. Failure to adhere to this rule results in communications errors.