TPMLIB\_WasManufactured(3) TPMLIB\_WasManufactured(3)

# [NAME](#NAME)

TPMLIB\_WasManufactured - Check whether a new instance was created

# [LIBRARY](#LIBRARY)

TPM library (libtpms, -ltpms)

# [SYNOPSIS](#SYNOPSIS)

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

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

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

**TPM\_BOOL TPMLIB\_WasManufactured(void);**

# [DESCRIPTION](#DESCRIPTION)

**TPMLIB\_WasManufactured()** is used to check whether a new TPM instance was created using **TPMLIB\_MainInit()** rather than an already existing one was restarted. This function will only return a valid result if it is called after **TPMLIB\_MainInit()**.

This function only applies to a TPM 2 and for a TPM 1.2 it will always return *FALSE*.

# [SEE ALSO](#SEE_ALSO)

**TPMLIB\_ChooseTPMVersion**, [**TPMLIB\_MainInit**(3)](/man/enterprise-packages/libtpms/TPMLIB_MainInit.3)

2026-10-01 libtpms

---

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