Tspi_T...Events(3)
π Tspi_T...Events β TCG Software Stack Developer's Reference π
okay bestie, sit down, hydrate, and let me tell you about Tspi_TPM_GetEvents β she's a TSS 1.1 girly from the Trusted Computing Group and she is literally the plug for pulling PCR events out of your TPM. no cap. π
β¨ NAME β¨
Tspi_TPM_GetEvents β get a specific number of PCR events for a given index.
like. she gets you a specific number of events. for a given index. that's the whole vibe. π
πΈ 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_GetEvents(TSS_HTPM hTPM, UINT32 ulPcrIndex,
UINT32 ulStartNumber, UINT32* pulEventNumber,
TSS_PCR_EVENT* prgbPcrEvents);
look at those includes. seven of them. she's high maintenance and honestly? deserved. π
π¦ DESCRIPTION π¦
Tspi_TPM_GetEvents provides a specific number of PCR events for a given index.
that's it, that's the whole plot. you ask for some events, she hands you some events. iconic behavior, no notes. β¨
π PARAMETERS π
hTPM
Handle of the TPM object. your main character handle, basically. π«Ά
ulPcrIndex
Index of the PCR to request. which PCR are we digging into bestie, that's the one. π
ulStartNumber
Indext of the first event to request. (yes it says "Indext," the spec said what it said and we respect her) π
pulEventNumber
[IN] Number of elements to request. [OUT] Receives number of returned event data structures in prgbPcrEvents parameter.
so she's doing double duty β you tell her how many you want, she tells you how many you got. multitasking queen. π
prgbPcrEvents
Receives a pointer to an array of PCR event data. If NULL, only the number of elements is returned in pulEventNumber parameter.
ooh this is the good part β pass NULL here and you get a lil sneak peek at how many events there are, without any of the actual event data. a vibe check, if you will. π
π RETURN CODES π
Tspi_TPM_GetEvents returns TSS_SUCCESS on success, otherwise one of the following values are returned:
TSS_E_INVALID_HANDLEβhTPMis not a valid handle to the TPM object. bestie that handle is not real, she does not know her. πTSS_E_INTERNAL_ERRORβ An error occurred internal to the TSS. something went wrong inside the TSS and honestly it's not your fault, fr fr.
π CONFORMING TO π
Tspi_TPM_GetEvents conforms to the Trusted Computing Group Software Specification version 1.1 Golden.
Golden! she's certified, she's spec-compliant, she's that girl. β
π SEE ALSO π
go read her sisters, they're all slaying in the same family. iykyk. π§
and that's the page!! brought to you by TSS 1.1, dated 2004-05-26 β she's been iconic since 2004 and she's still serving. mwah, love u, go log some events. πβ¨π¦πΈππ π«Άπ
π¦ 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