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 π
TPMLIB_ChooseTPMVersionTPMLIB_MainInit(3)
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
- alpine 3.24: libtpms-doc 0.10.2-r0 Β· BSD-3-Clause
- arch rolling: libtpms 0.10.2-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms