---
name: "TPM_IO_TpmEstablished_Reset"
section: "3"
platform: "linux"
package: "libtpms"
version: "0.10.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/TPM_IO_TpmEstablished_Get"
---

# TPM\_IO\_TpmEstablished\_Reset(3)

get the value of the TPMEstablished flag TPM\_IO\_TpmEstablished\_Reset - reset the TPMEstablished flag

Part of [TPM\_IO\_TpmEstablished\_Get(3)](/TPM_IO_TpmEstablished_Get/3.md).

## NAME

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

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

## LIBRARY

TPM library (libtpms, -ltpms)

## SYNOPSIS

**#include \<libtpms/tpm\_types.h**\>

**#include \<libtpms/tpm\_tis.h**\>

**#include \<libtpms/tpm\_error.h**\>

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

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

## 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

- **TPM\_SUCCESS**

  The function completed successfully.

- **TPM\_FAIL**

  General failure.

- **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

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