Tss2_TctiLdr_FreeInfo(3)
π Tss2_TctiLdr_FreeInfo(3) π
okay bestie so this is a page from the Library Functions Manual, and today's main character is Tss2_TctiLdr_FreeInfo β yes she's a cleanup girlie and honestly? we stan a function that knows how to let go. π«Ά
β¨ NAME β¨
Tss2_TctiLdr_FreeInfo β the function that frees a TSS2_TCTI_INFO structure that got allocated by Tss2_TctiLdr_Initialize(). π§
πΈ SYNOPSIS πΈ
#include <tss2/tss2_tctildr.h>
void Tss2_TctiLdr_FreeInfo (TSS2_TCTI_INFO*info);
π DESCRIPTION π
so basically, Tss2_TctiLdr_FreeInfo() destroys an instance of the TSS2_TCTI_INFO structure that was created by the Tss2_TctiLdr_GetInfo() function. it's giving β¨closureβ¨, it's giving release the memory back to the universe, no cap.
the info parameter is a reference to the TSS2_TCTI_INFO structure that's about to be freed. that's it. that's the whole job. iconic behaviour honestly. π
π RETURN VALUE π
this function returns no value. literally nothing. void core. she does her thing and leaves, no notes, no receipt, no drama. π
β EXAMPLE β
Example code. (yes bestie, real code, go look π)
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <tss2/tss2_tctildr.h>
TSS2_TCTI_INFO *info = NULL;
TSS2_RC rc = Tss2_TctiLdr_GetInfo (NULL, &info);
if (rc != TSS2_RC_SUCCESS) {
fprintf (stderr, "Failed to get TSS2_TCTI_INFO structure for default "
"TCTI with response code: 0x%" PRIx32 "0, rc);
exit (EXIT_FAILURE);
}
if (info != NULL) {
Tss2_TctiLdr_FreeInfo (info);
info = NULL;
}
exit (EXIT_SUCCESS);
quick vibe check bestie: see how she checksinfo != NULLbefore freeing, and then setsinfo = NULLright after? that's the self-care. that's the "we don't leave dangling pointers in this house" energy. π₯
π AUTHOR π
TPM2 Software Project <https://github.com/tpm2-software/tpm2-tss>
π SEE ALSO π
Tss2_Tcti_Device_Init(3)Tss2_Tcti_Socket_Init(3)Tss2_TctiLdr_Initialize(3)Tss2_TctiLdr_Finalize(3)tcti-device(7)tcti-socket(7)tcti-tabrmd(7)tpm2-abrmd(8)
the whole friend group fr fr, go read them too, iykyk. π¦
π COLOPHON π
this page is part of release 4.2.0 of Open Source implementation of the TCG TPM2 Software Stack (TSS2). a description of the project, information about reporting bugs, and the latest version of this page can be found at https://github.com/tpm2-software/tpm2-tss/. π
π LICENSE π
this work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). for more information visit https://creativecommons.org/licenses/by/4.0/ β share the love, credit the source, slay responsibly π
and that's the whole page bestie!! this one's from the TPM2 Software Stack, dated JUNE 2019, and the manual page is Tss2_TctiLdr_FreeInfo(3). free your structs, null your pointers, drink some water, and i'll see u in the next man page π«Άβ¨π
π¦ where this page comes from
- arch rolling: tpm2-tss 4.2.0-2 Β· BSD-2-Clause
- nixos 26.05: tpm2-tss 4.2.0
- nixpkgs unstable: tpm2-tss 4.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms