Tspi_TPM_SetStatus(3)
β¨ Tspi_TPM_SetStatus β¨
okay bestie, welcome to the Library Functions Manual corner of the TCG Software Stack Developer's Reference π
this one's Tspi_TPM_SetStatus(3) and she's here to mess with your TPM's status. let's get into it π
πΈ NAME πΈ
Tspi_TPM_SetStatus β modify the TPM's status
π¦ SYNOPSIS π¦
#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>
TSS_RESULT Tspi_TPM_SetStatus(TSS_HTPM hTPM, TSS_FLAG statusFlag,
TSS_BOOL fTpmState);
like yes, that's a LOT of includes, but that's just how the TSS girlies roll π
π DESCRIPTION π
so Tspi_TPM_SetStatus alters the status of the TPM. iconic. depending on which statusFlag you picked, fTpmState may or may not get ignored β the way that some flags just don't care about your little boolean is honestly so real of them.
for this command to work, the TPM has to be on and the handle to the TPM has to be available. no handle, no service, periodt. π
β οΈ bestie heads up: this command is not currently implemented. i know. i know. we were all rooting for her. π
β¨ PARAMETERS β¨
π hTPM
the hTPM parameter is what you use to specify the handle of the TPM object. it's literally the little name tag that tells the function which TPM we're talking to π«Ά
π statusFlag
the statusFlag parameter is what the TPM status should be set to. it's giving "which vibe are we locking in" π
π fTpmState
the fTpmState parameter is the status value to set. for some states, this flag is just ignored β not her moment, and that's fine π
π₯ RETURN CODES π₯
Tspi_TPM_SetStatus returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhTPMis not a valid handle. the handle said "not today" πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. something deep inside is going through it πTSS_E_BAD_PARAMETERβ one or more parameters is bad. not bad as in slay, bad as in wrong π
π CONFORMING TO π
Tspi_TPM_SetStatus conforms to the Trusted Computing Group Software Specification version 1.1 Golden β¨ main character certification fr fr
π SEE ALSO π
and that's the whole page bestie, no notes π this was TSS 1.1, dated 2004-05-25 β yeah she's vintage, she's archival, she's lowkey a time capsule, and honestly? ate. π«Άβ¨
π¦ 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