nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ psa_ps_get_info()

psa_status_t psa_ps_get_info ( psa_storage_uid_t  uid,
struct psa_storage_info_t *  p_info 
)

#include <include/protected_storage.h>

Retrieve the metadata about the provided uid.

Retrieves the metadata stored for a given uid

Parameters
[in]uidThe uid value
[out]p_infoA pointer to the psa_storage_info_t struct that will be populated with the metadata
Returns
A status indicating the success/failure of the operation
Return values
PSA_SUCCESSThe operation completed successfully
PSA_ERROR_INVALID_ARGUMENTThe operation failed because one of the provided pointers(p_info) is invalid, for example is NULL or references memory the caller cannot access
PSA_ERROR_DOES_NOT_EXISTThe operation failed because the provided uid value was not found in the storage
PSA_ERROR_STORAGE_FAILUREThe operation failed because the physical storage has failed (Fatal error)
PSA_ERROR_GENERIC_ERRORThe operation failed because of an unspecified internal failure
PSA_ERROR_DATA_CORRUPTThe operation failed because the data associated with the UID was corrupt