tpm2_shutdown(9)
β¨ NAME β¨
tpm2_shutdown β send a TPM shutdown command π
okay bestie, welcome to the tpm2_shutdown(9) page from the Kernel API Manual. this is the whole vibe check: one little kernel function whose entire job is sending a TPM shutdown command. no cap. periodt.
π SYNOPSIS π
the signature is literally right here, copy it exactly:
void tpm2_shutdown (struct tpm_chip *chip , u16 shutdown_type );
π ARGUMENTS π
chipβ atpm_chipinstance. it's giving βthe TPM chip in question,β bestie. πshutdown_typeβTPM_SU_CLEARorTPM_SU_STATE. those are the two options, and thatβs the whole menu. slay. β¨
πΈ DESCRIPTION πΈ
okay so this function sends a TPM shutdown command. the shutdown command is used in call sites where the system is going down. if it fails, there is not much that can be done except print an error message. π thatβs the tea: no dramatic rescue arc, no backup plan, just a sad little error print and vibes.
π¦ SEE ALSO π¦
the kernel file is ./drivers/char/tpm/tpm2-cmd.c, and these are the friends in the group chat:
tpm2_calc_ordinal_duration(9)tpm2_pcr_read(9)tpm2_pcr_extend(9)tpm2_get_random(9)tpm2_flush_context(9)tpm2_get_tpm_pt(9)tpm2_do_selftest(9)tpm2_probe(9)tpm2_startup(9)tpm2_auto_startup(9)
mwah π β this page comes from ./drivers/char/tpm, dated October 2026, and itβs the tpm2_shutdown(9) manual page. bye bestie, go be iconic π«Άβ¨
π¦ 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