tpm_transmit(9)
π tpm_transmit(9) β from the Kernel API Manual, bestie π
okay so welcome to the group chat, this is tpm_transmit from section 9 of the Kernel API Manual and honestly she's lowkey a legend π«Ά
β¨ NAME β¨
tpm_transmit β the internal kernel interface for transmitting TPM commands, no cap π
πΈ SYNOPSIS πΈ
ssize_t tpm_transmit (struct tpm_chip *chip , u8 *buf , size_t bufsiz );
π ARGUMENTS π
chipβ a TPM chip to use, like, the actual chip you're talking to π¦bufβ a TPM command buffer. this is where the command lives frbufsizβ length of the TPM command buffer. gotta know how bigbufis, obviously π
π₯ DESCRIPTION π₯
so what she actually does: she's a wrapper around tpm_try_transmit π« and the way that she handles TPM2_RC_RETRY returns from the TPM is genuinely iconic β she retransmits the command after a delay, up to a maximum wait of TPM2_DURATION_LONG β
bestie, important lore: TPM 1.x never returns TPM2_RC_RETRY, so this whole retry logic is TPM 2.0 only π don't come for her about 1.x, she doesn't play that game
π RETURN π
- The response length β OK π
-errnoβ A system error π
π§ SEE ALSO π§
- Kernel file
./drivers/char/tpm/tpm-interface.c tpm_calc_ordinal_duration(9)tpm_transmit_cmd(9)tpm_is_tpm2(9)tpm_pcr_read(9)tpm_pcr_extend(9)tpm_get_random(9)
all of these are her besties, go say hi π
and that's the whole page, periodt π this came out of ./drivers/char/tpm and is dated October 2026 β mwah, love u, go transmit some commands 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