tpm_class_shutdown(9)
okay so bestie, welcome to tpm_class_shutdown(9) from the Kernel API Manual β¨ this is the lil shutdown-prep page, and we're gonna get into it π
β¨ NAME β¨
tpm_class_shutdown β prepare the TPM device for loss of power. That's literally the whole mission, no cap π
π¦ SYNOPSIS π¦
int tpm_class_shutdown (struct device *dev );
π ARGUMENTS π
devβ the device to which the chip is associated. That's the device the chip is associated with, bestie π«Ά
π DESCRIPTION π
It issues a TPM2_Shutdown command before loss of power, as required by the TPM 2.0 spec π Then it calls the bus- and device- specific shutdown code. It's giving "shutdown prep, but make it spec-compliant" fr fr π₯
πΈ RETURN πΈ
always 0 (i.e. success) β yep, it's always 0 (i.e. success), not me being obsessed with a guaranteed success return ππ
π₯ SEE ALSO π₯
also check out the kernel file ./drivers/char/tpm/tpm-chip.c (yes, that exact path, bestie) and these iconic references:
tpm_chip_start(9)tpm_chip_stop(9)tpm_try_get_ops(9)tpm_put_ops(9)tpm_default_chip(9)tpm_dev_release(9)tpm_chip_alloc(9)tpmm_chip_alloc(9)
mwah π this page lives in ./drivers/char/tpm, dated October 2026, and it's all about tpm_class_shutdown(9) realness π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms