TPMLIB_WasManufactured(3)

πŸ’… TPMLIB_WasManufactured β€” the libtpms manual, bestie πŸ’…

Okay so this is the libtpms page for TPMLIB_WasManufactured(3), and it is lowkey iconic for one very specific job. Let’s get into it 🫢


✨ NAME ✨

TPMLIB_WasManufactured β€” check whether a new instance was created πŸ’–


πŸ“š LIBRARY πŸ“š

TPM library (libtpms, -ltpms) β€” yes bestie, that’s the one πŸŽ€


🧚 SYNOPSIS 🧚

#include <libtpms/tpm_types.h>

#include <libtpms/tpm_library.h>

#include <libtpms/tpm_error.h>

TPM_BOOL TPMLIB_WasManufactured(void);

🌸 DESCRIPTION 🌸

TPMLIB_WasManufactured() is literally here to check whether a new TPM instance was created using TPMLIB_MainInit() rather than an already existing one being restarted. That’s the whole vibe check πŸ”₯

This function will only return a valid result if it is called after TPMLIB_MainInit(). So like… call it at the right time, okay? 😭

Also important: this function only applies to a TPM 2, and for a TPM 1.2 it will always return FALSE. No cap, that’s just how it is πŸ’€


πŸ‘€ SEE ALSO πŸ‘€


That’s the page, bestie β€” go forth and manufacture responsibly πŸ’œ

Signed, sealed, delivered by libtpms, dated 2026-01-02, and filed under TPMLIB_WasManufactured(3) πŸŽ€βœ¨

πŸ“¦ where this page comes from