pdcomm_gem_result_program_info
Function
Reads the process program details of a GEM result.
PdcommStatus pdcomm_gem_result_program_info(const PdcommGemResult *result, PdcommGemProgramInfo *info)Valid for program request (#PDCOMM_GEM_PRIMARY) and response (#PDCOMM_GEM_RESPONSE) results. Invalid, failed, aborted, or unrelated results return #PDCOMM_INVALID_STATE; the generic pdcomm_gem_result_info() still reports their acknowledgement or terminal error.
Parameters
| Name | Description |
|---|---|
result | Live GEM result. |
info | Caller storage with struct_size set; cleared first and filled on success. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info is NULL or too small, or result is NULL; #PDCOMM_INVALID_STATE when the result has no program data; #PDCOMM_INTERNAL_ERROR when a panic was contained.
Notes
- Result data survive endpoint destruction.