tpm1_pm_suspend(9)
β¨ tpm1_pm_suspend (9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is genuinely so niche but so real β it's the power-management suspend handler for TPM 1.x chips π«Ά
πΈ NAME πΈ
tpm1_pm_suspend β the pm suspend handler, no cap π
π¦ SYNOPSIS π¦
int tpm1_pm_suspend (struct tpm_chip *chip , u32 tpm_suspend_pcr );
π ARGUMENTS π
chipβ the TPM chip you're using, your main character fr π₯tpm_suspend_pcrβ flush pcr, specifically for those buggy TPM chips π (iykyk)
π DESCRIPTION π
so what does it actually do? it saves the TPM state, bestie β the whole point is that it gets restored on resume β¨. literally the "remember where we left off" of the whole power-management situation.
π RETURN π
0β success, slay π< 0β uh oh, error π
β SEE ALSO β
- Kernel file
./drivers/char/tpm/tpm1-cmd.cβ go read the source, it's giving lore π§ tpm1_calc_ordinal_duration(9)tpm1_startup(9)tpm1_get_random(9)tpm1_continue_selftest(9)tpm1_do_selftest(9)tpm1_auto_startup(9)tpm1_get_pcr_allocation(9)
ngl the whole friend group of TPM 1.x functions is listed up there β go say hi, they're all iconic in their own way π
okay that's the whole page!! sourced from ./drivers/char/tpm, dated October 2026 β periodt, go touch some kernel code bestie ππ
π¦ 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