tpm_cr50_i2c_wait_tpm_ready(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tpm_cr50_i2c_wait_tpm_ready(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for tpm_cr50_i2c_wait_tpm_ready, and honestly? it's giving "small function, big responsibility." let's get into it 🫢


🌸 NAME 🌸

tpm_cr50_i2c_wait_tpm_ready β€” literally just wait for the tpm to signal ready, that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

int tpm_cr50_i2c_wait_tpm_ready (struct tpm_chip *chip );

bestie it takes exactly one argument and returns an int, no cap 🧚


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” a TPM chip. that's it. that's the argument. it's the chip we're waiting on πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function waits for the completion interrupt if one is available. and if it's not available? no stress, it falls back to a fixed delay so the TPM has time to be ready. either way, we're waiting, we're slaying, we're moving on πŸ’…βœ¨


🌈 RETURN 🌈

  • 0 β€” success πŸŽ‰ iconic, we love to see it
  • -errno β€” a POSIX error code 😭 so like, something went sideways, and the error is one of the POSIX ones

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/char/tpm/tpm_tis_i2c_cr50.c β€” and it's also friends with struct tpm_i2c_cr50_priv_data(9) 🫢 plus this whole squad:


fr fr go read those too, they're all in the same friend group πŸ’€

k bye bestie, this page came from ./drivers/char/tpm and it's dated October 2026 🌸 β€” and yes, the header said tpm_cr50_i2c_wait_tpm_ready(9) the whole time, we been knew πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from