tpm_buf_init(9)
π tpm_buf_init(9) β¨
okay so bestie, welcome to tpm_buf_init(9) β yes that's the real header, and yes it's from the Kernel API Manual, and no you can't skip it, this is important stuff π«Ά
πΈ NAME πΈ
tpm_buf_init β literally just Initialize a TPM command. that's the whole vibe. it sets things up. it's the setup friend. π
β¨ SYNOPSIS β¨
void tpm_buf_init (struct tpm_buf *buf , u16 buf_size );
look at her. void, so she doesn't return anything β she just does it. main character energy, no receipts needed π
π ARGUMENTS π
bufβ atpm_buf. that's it, that's the whole description. she's atpm_buf, she gets passed in, we move on πβ¨buf_sizeβ Size of the buffer. the big one. the capacity. how much room yourtpm_bufgets to have whentpm_buf_initdoes her thing π¦
π₯ SEE ALSO π₯
like bestie please go read the rest of the family, they're all iconic in their own way:
- Kernel file
./drivers/char/tpm/tpm-buf.cβ the source file, the origin story, the birthplace π tpm_buf_init_sized(9)tpm_buf_reset(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)
all of them, no skips, we stan a complete reference list ππ
ngl this page is short and sweet and that's the point βtpm_buf_inittakes astruct tpm_buf *and au16size, gives you nothing back, and that's the entire plot π
and that's the tea, babe π this little page lives in ./drivers/char/tpm and it's dated October 2026, so mark your calendar and go initialize some buffers fr fr ππ§ββοΈ
π¦ 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