TPM\_IO\_TpmEstablished\_Get(3) TPM\_IO\_TpmEstablished\_Get(3)

# [NAME](#NAME)

TPM\_IO\_TpmEstablished\_Get - get the value of the TPMEstablished flag

TPM\_IO\_TpmEstablished\_Reset - reset the TPMEstablished flag

# [LIBRARY](#LIBRARY)

TPM library (libtpms, -ltpms)

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;libtpms/tpm\_types.h**&gt;

**#include &lt;libtpms/tpm\_tis.h**&gt;

**#include &lt;libtpms/tpm\_error.h**&gt;

**TPM\_RESULT TPM\_IO\_TpmEstablished\_Get(TPM\_BOOL** \**tpmEstablished);*

**TPM\_RESULT TPM\_IO\_TpmEstablished\_Reset(void);**

# [DESCRIPTION](#DESCRIPTION)

The **TPM\_IO\_TpmEstablished\_Get()** function returns the value of the TPMEstablished flag of the TPM's permanent data.

The **TPM\_IO\_TpmEstablished\_Reset()** function resets the TPMEstablished flag.

# [ERRORS](#ERRORS)

[**TPM\_SUCCESS**](#TPM_SUCCESS)

The function completed successfully.

[**TPM\_FAIL**](#TPM_FAIL)

General failure.

[**TPM\_BAD\_LOCALITY**](#TPM_BAD_LOCALITY)

The locality used for resetting the flags is wrong.

For a complete list of TPM error codes please consult the include file **libtpms/tpm\_error.h**

# [SEE ALSO](#SEE_ALSO)

[**TPMLIB\_MainInit**(3)](/man/enterprise-packages/libtpms/TPMLIB_MainInit.3), [**TPMLIB\_Terminate**(3)](/man/enterprise-packages/libtpms/TPMLIB_Terminate.3), [**TPMLIB\_RegisterCallbacks**(3)](/man/enterprise-packages/libtpms/TPMLIB_RegisterCallbacks.3), [**TPMLIB\_Process**(3)](/man/enterprise-packages/libtpms/TPMLIB_Process.3), [**TPM\_IO\_Hash\_Start**(3)](/man/enterprise-packages/libtpms/TPM_IO_Hash_Start.3), [**TPM\_IO\_Hash\_End**(3)](/man/enterprise-packages/libtpms/TPM_IO_Hash_End.3), [**TPM\_IO\_Hash\_Data**(3)](/man/enterprise-packages/libtpms/TPM_IO_Hash_Data.3)

2026-10-01 libtpms

---

Document: TPM_IO_TpmEstablished_Reset(3) from libtpms 0.10.2-r3 (Chainguard OS)
Source: https://github.com/stefanberger/libtpms
