XAie_ExportTransactionInstance - 2024.1 English

AI Engine System Software Driver Reference Manual (UG1642)

Document ID
UG1642
Release Date
2024-05-30
Version
2024.1 English

This API copies an existing transaction instance and returns a copy of the instance with all the commands for users to save the commands and use them at a later point.

Note: The copy of the transaction instance must be explicitly freed using the XAie_FreeTransactionInstance API. If Auto flush was enabled during the creating of the initial transaction, the instance returned by this API will not have the commands that are already flushed. The transaction instance must be exported before it is submitted as the XAie_SubmitTransaction API will free all the resources associated with it.

Prototype

XAie_TxnInst * XAie_ExportTransactionInstance(XAie_DevInst *DevInst);

Parameters

The following table lists the XAie_ExportTransactionInstance function arguments.

Table 1. XAie_ExportTransactionInstance Arguments
Type Member Description
XAie_DevInst * DevInst Device instance pointer.

Returns

Pointer to copy of transaction instance on success and NULL on error.