TPMLIB_SetBufferSize(3)
π TPMLIB_SetBufferSize(3) π
okay bestie, welcome to the TPMLIB_SetBufferSize(3) manual page from libtpms β yes, that libtpms page, and weβre gonna make buffer sizes make sense β¨
π NAME π
TPMLIB_SetBufferSize β set the TPM's I/O buffer size π
πΈ LIBRARY πΈ
TPM library (libtpms, -ltpms) π«Ά
β¨ SYNOPSIS β¨
#include <libtpms/tpm_library.h>
uint32_t TPMLIB_SetBufferSize(uint32_t, uint32_t *, uint32_t *);
π¦ DESCRIPTION π¦
okay so TPMLIB_SetBufferSize() sets the size of the buffer the TPM can use for input and output and that it advertises to users. It also allows you to get the minimum and maximum supported buffer size. π
If 0 is given on input, the currently used buffer size is returned. Any other number will try to change the buffer size. The returned size may be smaller than the requested one, if the requested one was above a maximum. The returned size may be larger than the requested one, if the requested one was below a minimum. π
bestie, timing check π: this function must be called afterTPMLIB_ChooseTPMVersion()has been called. It should not be called afterTPMLIB_MainInit()has been called but can again be called onceTPMLIB_Terminate()has been called. π
π SEE ALSO π
mwah π thatβs the whole page β brought to you by source/version libtpms, dated 2026-01-02, for TPMLIB_SetBufferSize(3). byeee π«Άβ¨
π¦ 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