__crb_cmd_ready(9)
π __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 π¦
0on success π-ETIMEon timeout π
π SEE ALSO π
- Kernel file
./drivers/char/tpm/tpm_crb.cπ __crb_go_idle(9)π
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
- 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