tpm_buf_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a tpm_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_COMMAND
    • TPM2_ST_NO_SESSIONS
    • TPM2_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:

they all ate, lowkey πŸ‘‘


ngl the whole posse lives over in ./drivers/char/tpm, and this page dropped October 2026 in 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