Fapi_NvSetBits(3)

πŸ’… Fapi_NvSetBits(3) β€” Library Functions Manual vibes

Okay bestie, this is Fapi_NvSetBits(3) from the Library Functions Manual, and we're about to make NV bits make sense. πŸ’–


🌸 NAME 🌸

Fapi_NvSetBits - Fapi_NvSetBits

Yes, that's literally the whole NAME section. Iconic. πŸŽ€


✨ SYNOPSIS ✨

Functions

Here are the function signatures, verbatim, no cap:

TSS2_RC Fapi_NvSetBits (FAPI_CONTEXT *context, char const *path,
    uint64_t bitmap)
TSS2_RC Fapi_NvSetBits_Async (FAPI_CONTEXT *context, char const *path,
    uint64_t bitmap)
TSS2_RC Fapi_NvSetBits_Finish (FAPI_CONTEXT *context)

πŸ¦‹ Detailed Description πŸ¦‹

FAPI functions to invoke NvSetBits either as one-call or in an asynchronous manner. Both modes are here, so you can pick your adventure. 🫢


🧚 Function Documentation 🧚

πŸ’– TSS2_RC Fapi_NvSetBits (FAPI_CONTEXT * context, char const * nvPath, uint64_t bitmap)

One-Call function for Fapi_NvSetBits.

Sets bits in an NV index that was created as a bit field. Any number of bits from 0 to 64 may be SET. Yes, literally 0 to 64. πŸ’…

Parameters

  • context β€” The FAPI_CONTEXT.
  • nvPath β€” The path to the NV index where bits are set.
  • bitmap β€” The map of the bits to set.

Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or nvPath is NULL.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected.
  • TSS2_FAPI_RC_BAD_PATH β€” if nvPath is not found.
  • TSS2_FAPI_RC_NV_WRONG_TYPE β€” if the NV index type is not TPM2_NT_COUNTER.
  • TSS2_FAPI_RC_NV_NOT_WRITEABLE β€” if the NV is not a writeable index.
  • 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_NvSetBits_Async (FAPI_CONTEXT * context, char const * nvPath, uint64_t bitmap)

Asynchronous function for Fapi_NvSetBits.

Sets bits in an NV index that was created as a bit field. Any number of bits from 0 to 64 may be SET. Same bit-setting energy, async edition. ✨

Call Fapi_NvSetBits_Finish to finish the execution of this command.

Parameters

  • context β€” The FAPI_CONTEXT.
  • nvPath β€” The path to the NV index where bits are set.
  • bitmap β€” The map of the bits to set.

Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or nvPath is NULL.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected.
  • TSS2_FAPI_RC_BAD_PATH β€” if nvPath is not found.
  • TSS2_FAPI_RC_NV_WRONG_TYPE β€” if the NV index type is not TPM2_NT_COUNTER.
  • TSS2_FAPI_RC_NV_NOT_WRITEABLE β€” if the NV is not a writeable index.
  • 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_NvSetBits_Finish (FAPI_CONTEXT * context)

Asynchronous finish function for Fapi_NnSetBits.

This function should be called after a previous Fapi_NvSetBIts_Async.

Not me preserving the original spellings Fapi_NnSetBits and Fapi_NvSetBIts_Async exactly β€” they're literally in the page, bestie. πŸ’€

Parameters

  • context β€” The FAPI_CONTEXT.

Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context is NULL.
  • 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 the 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.


πŸ’– That's the whole page, bestie! Cute little sign-off: source/version is tpm2-tss, Version 4.1.5; the footer has no date, so we're not inventing one. Byeee! πŸŽ€

πŸ“¦ where this page comes from