tpm2_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 β€” a tpm_chip instance. 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 πŸ”₯

  • 0 on success πŸŽ‰
  • -errno otherwise 😭

🌈 SEE ALSO 🌈

kernel file ./drivers/char/tpm/tpm2-cmd.c, and also, like, the whole friend group:


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