pdcomm_gem_formatted_program_store_entry_info
Function
Reads the summary of one program in a snapshot.
PdcommStatus pdcomm_gem_formatted_program_store_entry_info(const PdcommGemFormattedProgramStoreSnapshot *snapshot, size_t entry_index, PdcommGemFormattedProgramStoreEntryInfo *info)Parameters
| Name | Description |
|---|---|
snapshot | Live snapshot. |
entry_index | Zero-based entry index, less than entry_count. |
info | Caller storage with struct_size, version, and reserved set. On success every field is written. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when snapshot or info is NULL, or the info header is invalid; #PDCOMM_OUT_OF_RANGE when entry_index is out of range; #PDCOMM_INTERNAL_ERROR when a panic was contained.
Notes
- Thread safety: snapshot getters may run concurrently with each other; destruction must not overlap them.