tpm_buf_reset(9)
π tpm_buf_reset β from the Kernel API Manual, bestie edition π
okay so picture this: you've got a TPM command buffer and it's already been through some stuff. this page (it's tpm_buf_reset, section 9, iykyk) is literally all about re-initializing that command so it's fresh again. reset era. main character energy. β¨
πΈ NAME πΈ
tpm_buf_reset β re-initialize a TPM command π«
like, the whole point is the re-init. don't sleep on it.
π¦ SYNOPSIS π¦
void tpm_buf_reset (struct tpm_buf *buf , u16 tag , u32 ordinal );
that's the whole signature, no cap. returns void β it gives nothing back and honestly? relatable. π«Ά
π ARGUMENTS π
bufβ atpm_buf. the buffer getting its glow-up. the one being re-initialized. treat her well πtagβ the tag, and it's gotta be one of these three, fr fr:TPM_TAG_RQU_COMMANDTPM2_ST_NO_SESSIONSTPM2_ST_SESSIONS
ordinalβ a command ordinal. that's it, that's the vibe. just an ordinal. π
π₯ SEE ALSO π₯
the kernel file at ./drivers/char/tpm/tpm-buf.c and its whole friend group:
tpm_buf_init(9)tpm_buf_init_sized(9)tpm_buf_reset_sized(9)tpm_buf_length(9)tpm_buf_append(9)tpm_buf_append_handle(9)tpm_buf_read(9)tpm_buf_read_u8(9)tpm_buf_read_u16(9)tpm_buf_read_u32(9)
they all ate, lowkey π
ngl the whole posse lives over in./drivers/char/tpm, and this page droppedOctober 2026in the Kernel API Manual β so yeah, that's the source, the version and the date, all in one cute little sign-off. stan. ππ§ββοΈ
bye bestie, go reset something π
π¦ 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