tpm_buf_append(9)
πΈ tpm_buf_append β bestie's guide to the kernel API manual, section 9 π
okay so this is tpm_buf_append from the Kernel API Manual (that's the manual name, hi, welcome to section 9) and honestly? she's a little workhorse and I'm obsessed. β¨
β¨ NAME β¨
tpm_buf_append β append data to an initialized buffer π
like, the buffer has already been initialized, okay? that part is not her job. don't come for her. π
π¦ SYNOPSIS π¦
void tpm_buf_append (struct tpm_buf *buf , const u8 *new_data , u16
new_length );
literally the whole signature, verbatim, no notes. void return, so she gives you nothing back β she just does the thing and you move on with your life. main character energy fr fr. π
π ARGUMENTS π
bufβ atpm_buf. that's it, that's the description. your buffer. the vessel. the moment. π«Άnew_dataβ a data blob β¨ just... a blob of data. no cap.new_lengthβ size of the appended data. it's au16, bestie, so it's the length of the stuff you're appending. the way that she needs this to know how much of the blob matters? iconic. π
π SEE ALSO π
the kernel file lives at ./drivers/char/tpm/tpm-buf.c and, ngl, there's a whole friend group over there. go say hi to all of them:
tpm_buf_init(9)tpm_buf_init_sized(9)tpm_buf_reset(9)tpm_buf_reset_sized(9)tpm_buf_length(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)
like, the read squad and the init squad and the reset squad all showed up. it's giving family reunion. π§ π
π reminder: tpm_buf_append expects an initialized buffer β that's in the NAME section, not my invention, so don't blame me when the vibes go sideways.
okay that's the whole page, no filler, every single detail intact, and now the cute sign-off: this one comes from ./drivers/char/tpm, dated October 2026 π β take care of her, she appends. bye bestie!! π¦π
π¦ 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