tpm_pcr_read(9)
π tpm_pcr_read(9) β Kernel API Manual β¨
okay so bestie, welcome to the tpm_pcr_read(9) page from the Kernel API Manual π«Ά. We're reading a PCR value from the SHA1 bank, and honestly? iconic. π§
π NAME
tpm_pcr_read β read a PCR value from SHA1 bank
πΈ SYNOPSIS
int tpm_pcr_read (struct tpm_chip *chip , u32 pcr_idx , struct
tpm_digest *digest );
π¦ ARGUMENTS
chipβ astruct tpm_chipinstance,NULLfor the default chip. so if you're feeling default-core, passNULLπpcr_idxβ the PCR to be retrieved. that's the one, bestie π―digestβ the PCR bank and the buffer the current PCR value is written to. it's giving "put the value here" energy π
π₯ RETURN
same as with tpm_transmit_cmd. no cap, literally the same return situation as tpm_transmit_cmd π
π SEE ALSO
- Kernel file
./drivers/char/tpm/tpm-interface.c tpm_calc_ordinal_duration(9)tpm_transmit(9)tpm_transmit_cmd(9)tpm_is_tpm2(9)tpm_pcr_extend(9)tpm_get_random(9)
mwah π β signing off from ./drivers/char/tpm, October 2026, on the tpm_pcr_read(9) page. periodt β¨π«Ά
π¦ 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