---
name: "Tspi_TPM_GetEvent"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.15-0.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_TPM_GetEvent"
---

# Tspi\_TPM\_GetEvent(3)

## NAME

Tspi\_TPM\_GetEvent- get a PCR event for a given PCR index and event number.

## 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\_GetEvent(TSS\_HTPM** *hTPM***,          UINT32**         *ulPcrIndex***,**                              **UINT32**   *ulEventNumber***, TSS\_PCR\_EVENT\*** *pPcrEvent***);**

## DESCRIPTION

**Tspi\_TPM\_GetEvent** provides a PCR event for a given PCR index and event number.

## PARAMETERS

### hTPM

Handle of the TPM object.

### ulPcrIndex

Index of the PCR to request.

### ulEventNumber

Index of the event to request.

### pPcrEvent

Receives the PCR event data.

## RETURN CODES

**Tspi\_TPM\_GetEvent** returns TSS\_SUCCESS on success, otherwise one of the following values are returned: TSS\_E\_INVALID\_HANDLE **hTPM** is not a valid handle to the TPM object. TSS\_E\_INTERNAL\_ERROR An error occurred internal to the TSS.

## CONFORMING TO

**Tspi\_TPM\_GetEvent** conforms to the Trusted Computing Group Software Specification version 1.1 Golden

## SEE ALSO

[**Tspi\_TPM\_GetEvents**(3)](/Tspi_TPM_GetEvents/3.md) [**Tspi\_TPM\_GetEventLog**(3)](/Tspi_TPM_GetEventLog/3.md).
