Fapi_GetDescription(3)
β¨ Fapi_GetDescription β¨
okay bestie, hiii π this is the manual page for Fapi_GetDescription β yes, the name is literally the same as the thing, iconic of it honestly. It lives in the tpm2-tss library manual, and the whole vibe here is FAPI functions that let you pull the description back out of an object you already stashed away. Let's get into it π
π SYNOPSIS
π Functions
TSS2_RC Fapi_GetDescription (FAPI_CONTEXT *context, char const *path,
char **description)
TSS2_RC Fapi_GetDescription_Async (FAPI_CONTEXT *context, char const *path)
TSS2_RC Fapi_GetDescription_Finish (FAPI_CONTEXT *context, char **description)
πΈ Detailed Description
So the whole point of these: they're the FAPI functions that invoke GetDescription β and you can do it either as a one-call situation or in a whole asynchronous manner, whichever fits your main character energy β¨
π¦ Function Documentation
π TSS2_RC Fapi_GetDescription (FAPI_CONTEXT * context, char const * path, char ** description)
One-Call function for Fapi_GetDescription β literally the whole thing in one go, no follow-up needed π«Ά
It returns the description of a previously stored object. That's it, that's the gig.
π Parameters
contextβ TheFAPI_CONTEXTpathβ The path of the object for which the description is loadeddescriptionβ The description of the object
π₯ Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,pathordescriptionisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not found.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called again.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π§ TSS2_RC Fapi_GetDescription_Async (FAPI_CONTEXT * context, char const * path)
Asynchronous function for Fapi_GetDescription β the "we'll do this later" version, lowkey so useful π
It returns the description of a previously stored object.
Call Fapi_GetDescription_Finish to finish the execution of this command. Don't leave it hanging bestie, it needs closure π
π Parameters
contextβ TheFAPI_CONTEXTpathβ The path of the object for which the description is loaded
π₯ Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_PATHβ ifpathdoes not map to a FAPI entity.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not found.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π TSS2_RC Fapi_GetDescription_Finish (FAPI_CONTEXT * context, char ** description)
Asynchronous finish function for Fapi_GetDescription β the part where you actually collect your results π
This function should be called after a previous Fapi_GetDescription_Async. You started it, now finish it, periodt.
π Parameters
contextβ TheFAPI_CONTEXTdescriptionβ The description of the object
π₯ Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextordescriptionisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again later. (ngl this one is literally "not yet, bestie, check back in a sec" π« )TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.
π Author
Generated automatically by Doxygen for tpm2-tss from the source code. Not a human, just a very industrious little doc generator doing its thing π€π
okay that's the whole page, no cap, nothing skipped π«Ά go get those descriptions bestie, the objects are waiting π
tpm2-tss β Version 4.1.5 π bye diva, slay responsibly β¨π
π¦ 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