tpm1_get_pcr_allocation(9)
okay so bestie, this is the tpm1_get_pcr_allocation(9) page from the Kernel API Manual β manual name folded in right near the top instead of a whole header-line reprint, because we're cute like that. π
β¨
πΈ NAME πΈ
tpm1_get_pcr_allocation β initialize the allocated bank. That's the whole name-section vibe, and yes it's giving "we're setting up the bank" energy. π
β¨ SYNOPSIS β¨
Here's the signature, copied exactly because we do not play with code, ever:
int tpm1_get_pcr_allocation (struct tpm_chip *chip );
π¦ ARGUMENTS π¦
chipβ the TPM chip to use. That's the argument, bestie; it's astruct tpm_chip *and it's literally the chip we're working with. π
π DESCRIPTION π
The function initializes the SHA1 allocated bank to extend PCR. That's the whole description β it's giving focused, it's giving "the SHA1 allocated bank is getting initialized so PCR extending can happen", and honestly? Obsessed. π
π₯ RETURN π₯
Return vibes are simple:
0β on success, slay. π< 0β on error, not slay. π
π SEE ALSO π
Kernel file ./drivers/char/tpm/tpm1-cmd.c β go look, bestie. π
tpm1_calc_ordinal_duration(9)tpm1_startup(9)tpm1_get_random(9)tpm1_continue_selftest(9)tpm1_do_selftest(9)tpm1_auto_startup(9)tpm1_pm_suspend(9)
okay that's the page! signing off from ./drivers/char/tpm (the source/version path, periodt), dated October 2026, and this has been tpm1_get_pcr_allocation(9). mwah πππ«Ά
π¦ 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