TPMLIB\_VolatileAll\_Store(3) TPMLIB\_VolatileAll\_Store(3)

# [NAME](#NAME)

TPMLIB\_VolatileAll\_Store - store all volatile state of the TPM in a buffer

# [LIBRARY](#LIBRARY)

TPM library (libtpms, -ltpms)

# [SYNOPSIS](#SYNOPSIS)

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

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

**TPM\_RESULT TPMLIB\_VolatileAll\_Store(unsigned char \*\*buffer,**  
**uint32\_t \*buflen);**

# [DESCRIPTION](#DESCRIPTION)

The **TPMLIB\_VolatileAll\_Store()** function is used to get the volatile state of the TPM. The function will allocate a *buffer* and return the number of bytes of state information in the *buflen* variable.

# [ERRORS](#ERRORS)

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

The function completed successfully.

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

General failure.

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)

2026-10-01 libtpms

---

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