tpm2_pcr_extend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ tpm2_pcr_extend(9) β€” the Kernel API Manual glow-up πŸ¦‹

okay bestie, so this is tpm2_pcr_extend from the kernel's TPM corner of the world, and it's literally the function that extends a PCR value. that's the whole vibe. it lives in the Kernel API Manual and ngl it's kind of iconic in a "quietly load-bearing security primitive" way πŸ‘‘


πŸŽ€ NAME πŸŽ€

tpm2_pcr_extend β€” extend a PCR value ✨

like, that's it, that's the name. short, sweet, ate πŸ’…


🌸 SYNOPSIS 🌸

int tpm2_pcr_extend (struct tpm_chip *chip , u32 pcr_idx , struct
tpm_digest *digests );

she takes three things and returns an int, no cap 🫢


πŸ’– ARGUMENTS πŸ’–

  • chip β€” the TPM chip you wanna use. your main character hardware, basically πŸ–₯️
  • pcr_idx β€” the index of the PCR. you gotta tell her which PCR, she's not a mind reader πŸ™ˆ
  • digests β€” the list of pcr banks and their corresponding digest values that you want to extend. it's giving "bring the whole group chat," fr fr πŸ“

⭐ RETURN ⭐

same as with tpm_transmit_cmd. that's the whole answer β€” she's delegating, and honestly? respect πŸ’€


🌈 SEE ALSO 🌈

kernel file ./drivers/char/tpm/tpm2-cmd.c β€” plus the whole friend group, and yes they're all invited:


lowkey a little reminder that this is a kernel function signature, so all those types and pointers are exactly as written β€” don't go "fixing" the spacing, bestie, it's character-for-character correct 😭

and that's the page!! πŸ’œ brought to you from ./drivers/char/tpm, dated October 2026, and yeah β€” this whole thing is tpm2_pcr_extend(9), one hundred percent. slay, go extend some PCRs responsibly πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from