STRUCT TPM_I2C_CR50_PRIV_DATA(9)
β¨ struct tpm_i2c_cr50_priv_data β Driver private data β¨
okay bestie, welcome to the kernel API manual for struct tpm_i2c_cr50_priv_data(9) β yes that's the whole title, we're being thorough today π
this is the driver private data struct and it's lowkey iconic, ngl.
π SYNOPSIS π
struct tpm_i2c_cr50_priv_data {
int irq;
struct completion tpm_ready;
u8 buf[TPM_CR50_MAX_BUFSIZE];
};
look at her. three fields. no notes. π«Ά
πΈ Members πΈ
irqβ the irq number this chip is using. and here's the tea: ifirq <= 0, then a fixed timeout gets used instead of waiting for an irq. so like, no irq, no problem, we just vibe on a timer β°tpm_readyβ a struct that the irq handler uses to signal R/W readiness. she's the little messenger going "ok we're ready, we're ready" π£bufβ the buffer used for i2c writes, and the i2c address gets prepended to the content. so the address is literally the main character at the front of the buffer π
π¦ Description π¦
private driver struct used by kernel threads and interrupt context. like, she lives in both worlds. dual citizenship. main character energy fr fr β¨
π SEE ALSO π
kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c β go read it, iykyk π
and the whole friend group:
tpm_cr50_i2c_int_handler(9)tpm_cr50_i2c_wait_tpm_ready(9)tpm_cr50_i2c_enable_tpm_irq(9)tpm_cr50_i2c_disable_tpm_irq(9)tpm_cr50_i2c_transfer_message(9)tpm_cr50_i2c_read(9)tpm_cr50_i2c_write(9)tpm_cr50_check_locality(9)tpm_cr50_release_locality(9)tpm_cr50_request_locality(9)tpm_cr50_i2c_tis_status(9)tpm_cr50_i2c_tis_set_ready(9)tpm_cr50_i2c_get_burst_and_status(9)tpm_cr50_i2c_tis_recv(9)tpm_cr50_i2c_tis_send(9)tpm_cr50_i2c_req_canceled(9)tpm_cr50_vid_to_name(9)tpm_cr50_i2c_probe(9)tpm_cr50_i2c_remove(9)
and that's the whole page bestie, no cap π§ this one came from ./drivers/char/tpm, dated October 2026, and she's officially filed under struct tpm_...50_priv_data(9) β slay, periodt, go read some kernel source πβ
π¦ 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