Tspi_C...Object(3)
π Tspi_C...Object(3) π
okay bestie, welcome to the TCG Software Stack Developer's Reference β yes that's the manual name, and yes it's a whole vibe. sit down, grab a boba, we're learning how to close an object. it's giving "spring cleaning but for handles" π§Ήβ¨
πΈ NAME πΈ
Tspi_Context_CloseObject β destroy resources associated with an object handle.
like, literally destroy them. not "hide them in a drawer". destroy. π
β¨ SYNOPSIS β¨
first you gotta pull in the whole friend group, no skipping:
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
and then the actual moment:
TSS_RESULT Tspi_Context_CloseObject(TSS_HCONTEXT hContext, TSS_HOBJECT hObject);
that's it. two args. she's lowkey simple but highkey important. π«Ά
π¦ DESCRIPTION π¦
so TSS_Context_CloseObject destroys the object that's associated with the object handle. and the way that it does that? all the allocated resources that live inside that object get released too. gone. freed. main character exit. πͺπ¨
no leftover crumbs, no ghost resources haunting your process. periodt.
π PARAMETERS π
hContext
the handle of the context object. your home base, your safe space, the group chat the object was living in. π¬
hObject
the handle of the object that's about to be destroyed. say your goodbyes, bestie. π
β RETURN CODES β
Tspi_Context_CloseObject returns TSS_SUCCESS when everything slays, otherwise one of these little guys shows up to ruin the mood:
TSS_E_INVALID_HANDLEβ eitherhContextorhObjectare invalid handles. bestieβ¦ that handle isn't real. πTSS_E_INTERNAL_ERRORβ an error happened internal to the TSS. not your fault (probably), it's just messy inside. π
π CONFORMING TO π
Tspi_Context_CloseObject conforms to the Trusted Computing Group Software Specification version 1.1 Golden β yes, Golden. iconique behaviour only. β
π SEE ALSO π
Tspi_Context_CreateObject(3)β because every close needs a create first, iykyk. π¦
TSS 1.1 Β· 2004-05-26 β yeah she's an elder but she still ate. that's the version and the date right there in the footer, and honestly? timeless. πβ¨π
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms