tpm2_probe(9)
π¦ tpm2_probe(9) β the kernel API manual, bestie edition π¦
okay so this is tpm2_probe, a page from the Kernel API Manual, and honestly? it's a little icon and it deserves your attention π
β¨ NAME β¨
tpm2_probe β probe for the TPM 2.0 protocol π΅οΈββοΈ
πΈ SYNOPSIS πΈ
int tpm2_probe (struct tpm_chip *chip );
π ARGUMENTS π
chipβ atpm_chipinstance. that's it, that's the whole argument π«Ά
π DESCRIPTION π
so what this does is: it sends an idempotent TPM 2.0 command, and then it just looks at the response tag to see whether there's a TPM2 chip on the other end π like a vibe check but for hardware.
and if there is one? this function sets the flag TPM_CHIP_FLAG_TPM2. no cap, that's the whole assignment π
π₯ RETURN π₯
0on success π-errnootherwise π
π SEE ALSO π
kernel file ./drivers/char/tpm/tpm2-cmd.c, and also, like, the whole friend group:
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_shutdown(9)tpm2_do_selftest(9)tpm2_startup(9)tpm2_auto_startup(9)
and that's the page, bestie π mwah π this one lives in ./drivers/char/tpm, dated October 2026, and it's filed under tpm2_probe(9) β go forth and probe responsibly β¨π§π
π¦ 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