Fapi_List(3)

πŸ’… Fapi_List(3) β€” the girlies' guide to listing your FAPI objects

okay so this is Fapi_List from the tpm2-tss Library Functions Manual and honestly it's giving "let me see everything in the metadatastore" energy ✨ buckle up bestie, we're learning today πŸŽ€


🌸 NAME 🌸

Fapi_List β€” literally just Fapi_List, that's the name, no notes πŸ’…


✨ SYNOPSIS ✨

πŸ¦‹ Functions

TSS2_RC Fapi_List (FAPI_CONTEXT *context, char const *searchPath, char
    **pathList)
TSS2_RC Fapi_List_Async (FAPI_CONTEXT *context, char const *searchPath)
TSS2_RC Fapi_List_Finish (FAPI_CONTEXT *context, char **pathList)

πŸ’œ Detailed Description πŸ’œ

these are the FAPI functions that let you invoke List β€” either the one-call way (slay, single function, done) or the asynchronous way (the "we're doing this in stages" vibe) 🫢


πŸ‘‘ Function Documentation πŸ‘‘

⭐ TSS2_RC Fapi_List (FAPI_CONTEXT * context, char const * searchPath, char ** pathList)

One-Call function for Fapi_List β€” this is the main character fr fr πŸ”₯

it enumerates all objects in the metadatastore in a given path and returns them in a list of complete paths from the root, with the values separated by colons. yes bestie, colons, : 🩷

πŸŽ€ Parameters

  • context β€” the FAPI_CONTEXT
  • searchPath β€” the path that identifies the root of the search
  • pathList β€” a colon-separated list of all objects in the root path

🌈 Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success ✨
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context, searchPath, pathlist is NULL 😭
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected πŸ’€
  • TSS2_FAPI_RC_BAD_PATH β€” if searchPath does 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_NOT_PROVISIONED β€” FAPI was not provisioned
  • TSS2_FAPI_RC_BAD_VALUE β€” if an invalid value was passed into the function

🌸 TSS2_RC Fapi_List_Async (FAPI_CONTEXT * context, char const * searchPath)

Asynchronous function for Fapi_List β€” the "we'll get there when we get there" version πŸ¦‹

it enumerates all objects in the metadatastore in a given path and returns them in a list of complete paths from the root with the values separated by colons. same deal as the one-call version, just async ✨

call Fapi_List_Finish to finish the execution of this command β€” no leaving it half-done bestie 🫢

πŸŽ€ Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.

πŸ’œ Parameters

  • context β€” the FAPI_CONTEXT
  • searchPath β€” the path that identifies the root of the search

🌈 Return values

  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or searchPath is NULL 😭
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected πŸ’€
  • TSS2_FAPI_RC_BAD_PATH β€” if searchPath does 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_RC Fapi_List_Finish (FAPI_CONTEXT * context, char ** pathList)

Asynchronous finish function for Fapi_List β€” the grand finale, the closing number, the periodt πŸ’…

this function should be called after a previous Fapi_List_Async. that's it, that's the rule πŸ“

πŸŽ€ Parameters

  • context β€” the FAPI_CONTEXT
  • pathList β€” a colon-separated list of all objects in the root path

🌈 Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success ✨
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or pathList 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 ⏳ (she's not ready yet, be patient bestie)
  • TSS2_FAPI_RC_PATH_NOT_FOUND β€” if a FAPI object path was not found during authorization
  • TSS2_FAPI_RC_NOT_PROVISIONED β€” FAPI was not provisioned
  • 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

🧚 Author 🧚

generated automatically by Doxygen for tpm2-tss from the source code β€” she wasn't hand-written, she was born this way, iykyk πŸ’«


and that's the whole page bestie!! mwah πŸ’– this iconic little number came to you from tpm2-tss, Version 4.1.5, page Fapi_List(3) β€” no cap, that's the source and version, go off πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from