tpm_is_tpm2(9)
π tpm_is_tpm2(9) β Kernel API Manual π
okay so bestie, gather round, because we're about to find out the ONE thing everyone wants to know: do we have a TPM2 chip? that's it. that's the whole function. she's a vibe check for your silicon. β¨
πΈ NAME πΈ
tpm_is_tpm2 β do we have a TPM2 chip? (yes, this is genuinely the entire personality)
π¦ SYNOPSIS π¦
int tpm_is_tpm2 (struct tpm_chip *chip );
literally one function, one argument, no notes. π
π ARGUMENTS π
chipβ astruct tpm_chipinstance. passNULLif you want the default chip, because sometimes you just can't be bothered to pick one and honestly? valid. π«Ά
β RETURN β
the receipts, bestie:
1β we DO have a TPM2 chip. slay. π0β we do NOT have a TPM2 chip. it's giving legacy. π- a negative number for system errors (
errno) β so if it's negative, something went wrong and you should go read yourerrno, no cap. π
π₯ SEE ALSO π₯
the whole friend group, fr fr:
- Kernel file
./drivers/char/tpm/tpm-interface.c tpm_calc_ordinal_duration(9)tpm_transmit(9)tpm_transmit_cmd(9)tpm_pcr_read(9)tpm_pcr_extend(9)tpm_get_random(9)
all icons, all in the same directory, iykyk. π
lowkey important:1means yes,0means no, and negative means β¨something brokeβ¨ β don't mix those up or it's gonna be a whole thing. π
and that's the page! π this lil gem lives under ./drivers/char/tpm, and the version/date situation is October 2026 β so yeah, she's timestamped and official, tpm_is_tpm2(9) and all. periodt. ππ§
π¦ 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