Tspi_GetAttribUint32(3)
π Tspi_GetAttribUint32(3) π
okay so this is from the Library Functions Manual bestie, and it's giving β¨ TCG Software Stack Developers Reference β¨ energy. come sit with me, we're gonna read this together and it's gonna slay.
πΈ NAME πΈ
Tspi_GetAttribUint32 β get the value of a particular attribute associated with a given class or object π
β¨ SYNOPSIS β¨
first things first, you gotta include all your lil header files, 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>
then here's the actual function signature, look at her:
TSS_RESULT Tspi_GetAttribUint32(TSS_HOBJECT hObject, TSS_FLAG attribFlag,
TSS_FLAG subFlag, UINT32* pulAttrib);
π¦ DESCRIPTION π¦
so Tspi_GetAttribUint32 returns a specified uint32 attribute that's associated with a given class or object. that's the whole gig, she's a getter, she gets. π«Ά
but wait β in order to use this command, you must first create an object and then find the attributes you wish to set. like, you can't just walk up and ask for an attribute that doesn't exist yet, the object has to be there first, periodt. π
π PARAMETERS π
hObject
the hObject parameter is the handle of the object you wanna retrieve the attribute from. it's the "who are we talking about" of the whole situation.
attribFlag
the attribFlag parameter indicates the specific attribute to query. this is your main character flag, it says what you're asking for. π₯
subFlag
the subFlag parameter also indicates the specific attribute to query. yeah, two flags, both saying what you want, that's just how she is, we don't make the rules. π
pulAttrib
the pulAttrib parameter is a pointer to the location where the attribute value gets returned. that's where the answer lands, bestie. π¬
π RETURN CODES π
Tspi_GetAttribUint32 returns TSS_SUCCESS on success π β otherwise one of the following values is returned, and honestly? it's a lil list of ways things went wrong:
TSS_E_INVALID_HANDLEβhObjectis not a valid handle. (she doesn't know who you're talking about π)TSS_E_INVALID_ATTRIB_FLAGβattribFlagis incorrect.TSS_E_INVALID_ATTRIB_SUBFLAGβsubFlagis incorrect.TSS_E_INVALID_ATTRIB_DATAβpulAttribis incorrect.TSS_E_INTERNAL_ERRORβ an internal SW error has been detected. (not your fault, the vibes inside are just off π)TSS_E_BAD_PARAMETERβ one or more parameters is bad.
π CONFORMING TO π
Tspi_GetAttribUint32 conforms to the Trusted Computing Group Software Specification version 1.1 Golden β like, she's certified, she's official, she's on the spec.
π§ SEE ALSO π§
go check out her siblings, they're all iconic in their own way:
and that's the whole page, no notes, 10/10 π
this lil reference comes to you from TSS 1.1, dated 2004-05-25 β yeah she's an elder but she still ate π β¨ bye bestie, go get those attributes ππ¦
π¦ 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