tpm_transmit_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ¦‹


mwah β€” source/version ./drivers/char/tpm, date October 2026 πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from