tpm_transmit_cmd(9)
πΈ tpm_transmit_cmd(9) πΈ
πΈ NAME πΈ
okay so bestie, in the Kernel API Manual this is tpm_transmit_cmd β literally the function that sends a tpm command to the device πβ¨
β¨ SYNOPSIS β¨
ssize_t tpm_transmit_cmd (struct tpm_chip *chip , struct tpm_buf *buf ,
size_t min_rsp_body_length , const char *desc );
π ARGUMENTS π
chipβ a TPM chip to use, aka the main character device you're talking to πbufβ a TPM command buffer, the payload vibe β¨min_rsp_body_lengthβ the minimum expected length of response body, so don't skip this check, bestie πdescβ command description used in the error message, for when things get messy π
π₯ RETURN π₯
0β OK, literally the good ending π-errnoβ a system error, no cap πTPM_RCβ a TPM error, TPM-specific bestie π
π¦ SEE ALSO π¦
- Kernel file
./drivers/char/tpm/tpm-interface.cβ the source file bestie π«Ά tpm_calc_ordinal_duration(9)tpm_transmit(9)tpm_is_tpm2(9)tpm_pcr_read(9)tpm_pcr_extend(9)tpm_get_random(9)
mwah β source/version ./drivers/char/tpm, date October 2026 π
β¨π«Ά
π¦ 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