Fapi_NvIncrement(3)
π Fapi_NvIncrement(3) β Library Functions Manual π
okay so bestie, welcome to Fapi_NvIncrement(3) from the Library Functions Manual β she's cute, she's niche, and she increments NV counters by exactly 1. no cap. β¨
πΈ NAME πΈ
Fapi_NvIncrement β Fapi_NvIncrement
yes, the name is the name twice. she said βI am the brand,β and honestly? iconic. π
β¨ SYNOPSIS β¨
π¦ Functions π¦
TSS2_RC Fapi_NvIncrement (FAPI_CONTEXT *context, char const *path)
TSS2_RC Fapi_NvIncrement_Async (FAPI_CONTEXT *context, char const *path)
TSS2_RC Fapi_NvIncrement_Finish (FAPI_CONTEXT *context)
π Detailed Description π
The FAPI functions here are for invoking NvIncrement either as a one-call or in an asynchronous manner. two modes, one little increment, whole lotta FAPI energy. π«
π Function Documentation π
β TSS2_RC Fapi_NvIncrement (FAPI_CONTEXT * context, char const * nvPath)
TSS2_RC Fapi_NvIncrement (FAPI_CONTEXT * context, char const * nvPath)
This is the One-Call function for Fapi_NvIncrement. she increments an NV index that is a counter by 1. just +1, bestie, that's the whole assignment. π
π Parameters π
contextβ TheFAPI_CONTEXT.nvPathβ The path to the NV index that is incremented.
π Return values π
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextornvPathisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_PATHβ ifnvPathis not found.TSS2_FAPI_RC_NV_WRONG_TYPEβ if the NV index type is notTPM2_NT_COUNTER.TSS2_FAPI_RC_NV_NOT_WRITEABLEβ if the NV index is not writeable.TSS2_FAPI_RC_POLICY_UNKNOWNβ if the policy is unknown.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_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.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_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not set.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt fails.TSS2_ESYS_RC_*β possible error codes of ESAPI.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π¦ TSS2_RC Fapi_NvIncrement_Async (FAPI_CONTEXT * context, char const * nvPath)
TSS2_RC Fapi_NvIncrement_Async (FAPI_CONTEXT * context, char const * nvPath)
This is the Asynchronous function for Fapi_NvIncrement. same increment-by-1 agenda, just async-flavored. it increments an NV index that is a counter by 1. π¦
Call Fapi_NvIncrement_Finish to finish the execution of this command. don't leave her hanging, bestie. π
πΈ Parameters πΈ
contextβ TheFAPI_CONTEXT.nvPathβ The path to the NV index that is incremented.
β¨ Return values β¨
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextornvPathisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_PATHβ ifnvPathis not found.TSS2_FAPI_RC_NV_WRONG_TYPEβ if the NV index type is notTPM2_NT_COUNTER.TSS2_FAPI_RC_NV_NOT_WRITEABLEβ if the NV index is not writeable.TSS2_FAPI_RC_POLICY_UNKNOWNβ if the policy is unknown.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_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.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_NvIncrement_Finish (FAPI_CONTEXT * context)
TSS2_RC Fapi_NvIncrement_Finish (FAPI_CONTEXT * context)
This is the Asynchronous finish function for Fapi_NvIncrement. she's the sequel. this function should be called after a previous Fapi_NvIncrement_Async. periodt. π
π«Ά Parameters π«Ά
contextβ TheFAPI_CONTEXT.
π₯ Return values π₯
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextisNULL.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.TSS2_FAPI_RC_BAD_PATHβ if a path is used in inappropriate context or contains illegal characters.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.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_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not set.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt fails.TSS2_FAPI_RC_POLICY_UNKNOWNβ if policy search for a certain policy digest was not successful.TSS2_ESYS_RC_*β possible error codes of ESAPI.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π§ Author π§
Generated automatically by Doxygen for tpm2-tss from the source code. auto-generated and still serving looks, we love to see it. π
that's the whole page, bestie. this iconic little document is from tpm2-tss, Version 4.1.5, and it's the Fapi_NvIncrement(3) manual page β Library Functions Manual energy, no cap. π
β¨
π¦ 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