tpm_class_shutdown(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:

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