Fapi_GetInfo(3)
π Fapi_GetInfo β the Library Functions Manual page, but make it make sense π
Okay bestie, so this is the Fapi_GetInfo(3) page from the Library Functions Manual and it's genuinely the most "just tell me what version of stuff I'm running" energy ever. No cap, it's short, it's sweet, and it comes in two flavours: the one-call version and the asynchronous girlie version π¦
β¨ NAME β¨
Fapi_GetInfo β literally just Fapi_GetInfo, she's an icon and she knows it π
πΈ SYNOPSIS πΈ
Here's the whole cast, in a Functions block, exactly as written:
TSS2_RC Fapi_GetInfo (FAPI_CONTEXT *context, char **info)
TSS2_RC Fapi_GetInfo_Async (FAPI_CONTEXT *context)
TSS2_RC Fapi_GetInfo_Finish (FAPI_CONTEXT *context, char **info)
π Detailed Description π
So basically these are the FAPI functions that invoke GetInfo β either as a one-call situation or in an asynchronous manner. Pick your lane, both are valid π
π§ Function Documentation π§
β TSS2_RC Fapi_GetInfo (FAPI_CONTEXT * context, char ** info)
The one-call function for Fapi_GetInfo β the "I want it now" option, main character energy fr fr.
It returns a UTF-8 encoded string that identifies the versions of FAPI, TPM, configurations and other relevant information. It's giving "receipts for my entire setup" πβ¨
π Parameters
contextβ TheFAPI_CONTEXTinfoβ The byte buffer for the information string
π₯ Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontextorinfoisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMif FAPI was initialized in no-TPM-mode via its config file.TSS2_FAPI_RC_TRY_AGAINif an I/O operation is not finished yet and this function needs to be called again.TSS2_FAPI_RC_GENERAL_FAILUREif an internal error occurred.TSS2_FAPI_RC_BAD_VALUEif an invalid value was passed into the function.TSS2_ESYS_RC_*possible error codes of ESAPI.
π TSS2_RC Fapi_GetInfo_Async (FAPI_CONTEXT * context)
The asynchronous function for Fapi_GetInfo β she works in the background, lowkey mysterious, we stan π«Ά
Same deal as before: it returns a UTF-8 encoded string that identifies the versions of FAPI, TPM, configurations and other relevant information.
Bestie, listen: you must call Fapi_GetInfo_Finish to finish the execution of this command. Don't leave her hanging π
π Parameters
contextβ TheFAPI_CONTEXT
π₯ Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontextisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMif FAPI was initialized in no-TPM-mode via its config file.
π¦ TSS2_RC Fapi_GetInfo_Finish (FAPI_CONTEXT * context, char ** info)
The asynchronous finish function</cvan> for Fapi_GetInfo β the "okay I'm back, here's your data" moment β¨
This function should be called after a previous Fapi_GetInfo_Async. Like, that's the whole point, she's the sequel πΈ
π Parameters
contextβ TheFAPI_CONTEXTinfoβ The byte buffer for the information string
π₯ Return values
TSS2_RC_SUCCESSif the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEifcontextorinfoisNULL.TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORif the data cannot be saved.TSS2_FAPI_RC_MEMORYif the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINif the asynchronous operation is not yet complete. Call this function again later.TSS2_FAPI_RC_GENERAL_FAILUREif an internal error occurred.TSS2_FAPI_RC_BAD_VALUEif an invalid value was passed into the function.TSS2_ESYS_RC_*possible error codes of ESAPI.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. Not a human, but honestly? She ate π
tpm2-tss, Version 4.1.5, dated all the way back to Fapi_GetInfo(3) β that's the whole page bestie, go forth and check your versions ππβ¨
π¦ 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