__crb_cmd_ready(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 __crb_cmd_ready(9) 🌈

okay bestie, welcome to the Kernel API Manual corner of the group chat β€” this one is all about __crb_cmd_ready, and it's lowkey iconic for asking a tpm crb device to get itself into the ready state πŸ’…βœ¨


πŸ’– NAME πŸ’–

__crb_cmd_ready β€” request tpm crb device to enter ready state 🫢

✨ SYNOPSIS ✨

int __crb_cmd_ready (struct device *dev , struct crb_priv *priv , int
       loc );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the crb device πŸ“±
  • priv β€” the crb private data πŸ”’
  • loc β€” the locality πŸ“

🧚 DESCRIPTION 🧚

So the function literally writes CRB_CTRL_REQ_CMD_READY to TPM_CRB_CTRL_REQ and then polls till the device acknowledges it by clearing the bit πŸ‘€ The device should respond within TIMEOUT_C β€” that's the deadline, bestie ⏳

It does nothing for devices with the ACPI-start method or the SMC-start method β€” like, not a single thing πŸ™ˆ

πŸ¦‹ RETURN πŸ¦‹

  • 0 on success πŸŽ‰
  • -ETIME on timeout 😭

πŸ‘‘ SEE ALSO πŸ‘‘


final cute sign-off: source/version ./drivers/char/tpm, date October 2026, for the one and only __crb_cmd_ready(9) πŸ’–βœ¨

πŸ“¦ where this page comes from