Tspi_TPM_GetStatus(3)

πŸ’– Tspi_TPM_GetStatus(3) πŸ’–

okay bestie, gather round, we're reading the Library Functions Manual of the TCG Software Stack Developer's Reference and honestly? it's giving iconic. sit down, hydrate, let's go 🫢


✨ NAME ✨

Tspi_TPM_GetStatus β€” the girl whose entire job is querying the TPM's status πŸ’…


🌸 SYNOPSIS 🌸

#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>

TSS_RESULT Tspi_TPM_GetStatus(TSS_HTPM hTPM, TSS_FLAG statusFlag, BOOL* pfTpmState);

like yes, that's a lot of includes, she's high maintenance but worth it πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

Tspi_TPM_GetStatus queries the status of the TPM, and returns a specific status based on whatever flags you specified. main character behaviour fr fr ✨

🚨 bestie, important: this command is not currently implemented. like, she's on the guest list but she is NOT showing up to the party. 😭 do not build your whole vibe around her.

πŸŽ€ PARAMETERS πŸŽ€

  • hTPM β€” the handle of the TPM object. that's her ID, that's her passport, that's how we know which TPM we're talking about 🫢
  • statusFlag β€” the status you wanna retrieve. pick your flag, pick your destiny 🌈
  • fTpmState β€” lowkey the docs list this heading as fTpmState, but the parameter itself is pfTpmState, and it's a pointer to the value of the status queried. so she points at the answer. no cap πŸ‘‘

πŸ”₯ RETURN CODES πŸ”₯

Tspi_TPM_GetStatus returns TSS_SUCCESS on success. otherwise, one of these lil gremlins comes back at you:

  • TSS_E_INVALID_HANDLE β€” hTPM is not a valid handle. she doesn't know her. blocked πŸ’€
  • TSS_E_INTERNAL_ERROR β€” an internal SW error has been detected. something inside went wrong, not your fault babe πŸ™ˆ
  • TSS_E_BAD_PARAMETER β€” one or more parameters is bad. reread your args bestie 😭

πŸ‘‘ CONFORMING TO πŸ‘‘

Tspi_TPM_GetStatus conforms to the Trusted Computing Group Software Specification version 1.1 Golden. yes, Golden. as it should be ✨


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page bestie, no crumbs left πŸ“

this lil masterpiece comes to you from TSS 1.1, dated 2004-05-25 β€” vintage, iconic, ate and left no crumbs. mwah πŸ’…πŸŽ€