Fapi_SetAppData(3)
πΈ NAME πΈ
Okay bestie, welcome to Fapi_SetAppData(3) from the Library Functions Manual π
The name is literally Fapi_SetAppData β Fapi_SetAppData β and this page is all about that function and its little async crew. No cap.
β¨ SYNOPSIS β¨
Functions
TSS2_RC Fapi_SetAppData (FAPI_CONTEXT *context, char const *path,
uint8_t const *appData, size_t appDataSize)
TSS2_RC Fapi_SetAppData_Async (FAPI_CONTEXT *context, char const *path,
uint8_t const *appData, size_t appDataSize)
TSS2_RC Fapi_SetAppData_Finish (FAPI_CONTEXT *context)
π Detailed Description π
These are the FAPI functions that invoke SetAppData either as a one-call situation or in an asynchronous manner. Two paths, same data-blob destiny β¨
π Function Documentation π
π TSS2_RC Fapi_SetAppData (FAPI_CONTEXT * context, char const * path, uint8_t const * appData, size_t appDataSize)
This is the one-call function for Fapi_SetAppData, periodt.
It associates an arbitrary data blob with a given object π«Ά
Parameters
contextβ theFAPI_CONTEXTpathβ the path to the object the blob is associated withappDataβ the blob to associate with the object. May beNULLappDataSizeβ the size ofappDatain bytes. Must be0ifappDataisNULL
Return values
TSS2_RC_SUCCESSβ if the function call was a successTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathisNULL, or ifappDataisNULLandappDataSizeis not0TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entityTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorizationTSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not foundTSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called againTSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurredTSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned
π¦ TSS2_RC Fapi_SetAppData_Async (FAPI_CONTEXT * context, char const * path, uint8_t const * appData, size_t appDataSize)
The page literally labels this one one-call function for Fapi_SetAppData too β yes, even on the async one π β but it is what it is, and we keep the details exactly.
It associates an arbitrary data blob with a given object πΈ
Call Fapi_SetAppData_Finish to finish the execution of this command. That's the whole vibe: start async, then finish it.
Parameters
contextβ theFAPI_CONTEXTpathβ the path to the object the blob is associated withappDataβ the blob to associate with the object. May beNULLappDataSizeβ the size ofappDatain bytes. Must be0ifappDataisNULL
Return values
TSS2_RC_SUCCESSβ if the function call was a successTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathisNULL, or ifappDataisNULLandappDataSizeis not0TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entityTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorizationTSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not foundTSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned
π§ TSS2_RC Fapi_SetAppData_Finish (FAPI_CONTEXT * context)
This is the asynchronous finish function for Fapi_SetAppData, and it's giving cleanup era π
This function should be called after a previous Fapi_SetAppData_Async. Like, don't just leave your async operation hanging, bestie.
Parameters
contextβ theFAPI_CONTEXT
Return values
TSS2_RC_SUCCESSβ if the function call was a successTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextisNULLTSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detectedTSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pendingTSS2_FAPI_RC_IO_ERRORβ if the data cannot be savedTSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parametersTSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again laterTSS2_FAPI_RC_BAD_PATHβ if a path is used in inappropriate context or contains illegal charactersTSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurredTSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the functionTSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. The original prose was auto-generated, but the group-chat energy is all me πβ¨
Okay that's the whole page, bestie π β it's from tpm2-tss, Version 4.1.5, and the footer also echoes Fapi_SetAppData(3). Bye! π¦π
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms