Function QnnSystemDlc_getRecordsByType

Function Documentation

Qnn_ErrorHandle_t QnnSystemDlc_getRecordsByType(QnnSystemDlc_Handle_t dlcHandle, QnnSystemDlc_RecordType_t recordType, uint8_t getMostOptimalContextBinary, QnnSystemDlc_RecordHandle_t **recordHandles, uint32_t *numRecordHandles)

A function to retrieve records associated with handle dlcHandle of type recordType

Parameters
  • dlcHandle[in] handle to the DLC to which the records are associated

  • recordType[in] the type of the records to retrieve

  • getMostOptimalContextBinary[in] option to retrieve the most-compatible context binary on current SoC. This option is only useful when retrieving context binaries. If set to 1, no more than one context binary will be returned even if the DLC has multiple context binaries that match the provided recordType. If set to 0, all context binaries that match recordType will be returned

  • recordHandles[out] array of record handles matching recordType

  • numRecordHandles[out] number of record handles in recordHandles array

Returns

Error code

  • QNN_SUCCESS: Successfully retrieving records of type recordType

  • QNN_SYSTEM_DLC_ERROR_INVALID_HANDLE: Invalid dlcHandle passed

  • QNN_SYSTEM_DLC_ERROR_INVALID_ARGUMENT: invalid recordHandles or numRecordHandles passed

Note

If there are no records of recordType, then recordHandles will be set to nullptr and numRecordHandles will be set to 0