TPMLIB_VolatileAll_Store(3)

🌸 NAME 🌸

okay so bestie, meet TPMLIB_VolatileAll_Store(3) from the libtpms manual πŸ’–. Its whole main-character job? Store all volatile state of the TPM in a buffer. No cap, that's the plot.

πŸ“š LIBRARY πŸ“š

TPM library (libtpms, -ltpms) β€” yep, that's the one you link against, iykyk.

✨ SYNOPSIS ✨

The vibe check, exactly as the C gremlins intended:

#include <libtpms/tpm_library.h>

#include <libtpms/tpm_error.h>

TPM_RESULT TPMLIB_VolatileAll_Store(unsigned char **buffer,
                                          uint32_t *buflen);

πŸ’… DESCRIPTION πŸ’…

So TPMLIB_VolatileAll_Store() is the function you call to get the volatile state of the TPM. It will allocate a buffer and return the number of bytes of state information in the buflen variable. That's it, that's the whole slay. ✨

😭 ERRORS 😭

  • TPM_SUCCESS β€” the function completed successfully. We love a win. πŸ’–
  • TPM_FAIL β€” general failure. Not iconic, but it happens. πŸ’€

For a complete list of TPM error codes please consult the include file libtpms/tpm_error.h β€” yes, actually go look, it's right there. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’– that's the tea from libtpms, dated 2026-01-02 β€” TPMLIB_VolatileAll_Store(3) signing off, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from