---
name: "TPMLIB_CancelCommand"
section: "3"
platform: "linux"
package: "libtpms"
version: "0.10.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/TPMLIB_CancelCommand"
---

# TPMLIB\_CancelCommand(3)

Cancel a TPM command

## NAME

TPMLIB\_CancelCommand  - Cancel a TPM command

## LIBRARY

TPM library (libtpms, -ltpms)

## SYNOPSIS

**#include \<libtpms/tpm\_library.h**\>

**uint32\_t TPMLIB\_CancelCommand(void);**

## DESCRIPTION

The **TPMLIB\_CancelCommand()** function indicates that the ongoing processing of a TPM command is to be cancelled. The cancellation will only be effective for certain time consuming operations, such as the creation of keys.

Note that an implementation that wants to support cancellation of commands needs to process TPM commands in one thread and cancel them in another.

## SEE ALSO

[**TPMLIB\_Process**(3)](/TPMLIB_Process/3.md)
