tpm_cr50_i2...t_and_status(9)
π NAME π
tpm_cr50_i2c_get_burst_and_status β okay so this one grabs the burst count and the status for you, bestie. Two for one, we love a multitasker β¨
This little cutie lives in the Kernel API Manual, and yes the page name is the whole entire tpm_cr50_i2...t_and_status(9) situation β it's long, it's iconic, it's giving "my name is a paragraph" energy π
β¨ SYNOPSIS β¨
int tpm_cr50_i2c_get_burst_and_status (struct tpm_chip *chip , u8 mask ,
size_t *burst , u32 *status );
That's the whole vibe check right there β one function, four things going in, an int coming back out π«Ά
πΈ ARGUMENTS πΈ
chipβ a TPM chip. that's it, that's the whole description. she's a TPM chip πmaskβ the status mask. yes queen, filter those bits πburstβ nope, not an input β this is where the burst value gets returned to you π€statusβ same deal, this pointer is the return value for status, not something you feed in π€
π¦ DESCRIPTION π¦
okay so here's the lore: cr50 uses bytes 3:2 of the status register to hold the burst count.
and because of that whole arrangement, all 4 bytes must be read. all four. no skipping, no shortcuts, no "I'll just grab the two I need" bestie behavior π it literally does not work like that.
β RETURN β
0β success! slay! we ate and left no crumbs π-errnoβ a POSIX error code. so like, something went sideways, and it's telling you in the classic POSIX way π
π SEE ALSO π
okay this is the friend group, they all show up together, iykyk:
Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c
struct tpm_i2c_cr50_priv_data(9)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_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 page!! π this one comes straight out of ./drivers/char/tpm, dated October 2026, and honestly? she's short, she's sweet, she's a whole snack. go read the friend group above if you want the full cinematic universe ππ§
π¦ 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