tpm2_parse_create_primary(9)
β¨ tpm2_parse_create_primary(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's about tpm2_parse_create_primary, and no cap it's a little parser with main character energy. It lives in the kernel's TPM world and its whole job is parsing the data the TPM throws back at you from TPM_CC_CREATE_PRIMARY. That's it, that's the vibe. π
πΈ NAME πΈ
tpm2_parse_create_primary β literally just parses the data returned from TPM_CC_CREATE_PRIMARY, bestie. That's the whole assignment. π
π¦ SYNOPSIS π¦
int tpm2_parse_create_primary (struct tpm_chip *chip , struct tpm_buf
*buf , u32 *handle , u32 hierarchy , u8 *name );
like yes, five arguments, she's got range π
π ARGUMENTS π
chipβ the TPM that the primary was created under. your designated TPM bestie, basically π«Άbufβ the response buffer from the chip. this is where the TPM's little reply lives β¨handleβ pointer to be filled in with the return handle of the primary. she gets filled in iykyk πhierarchyβ the hierarchy the primary was created for. gotta know which family tree we're in πnameβ pointer to be filled in with the primary key name. iconic, named, loved β
π RETURN π
0β OK. slay, it worked, periodt π-errnoβ a system error. not the vibe, ngl πTPM_RCβ a TPM error. the chip said no fr fr π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/char/tpm/tpm2-sessions.c β go read her, she's the source of truth π
tpm_buf_append_name(9)tpm_buf_append_hmac_session(9)tpm_buf_fill_hmac_session(9)tpm_buf_check_hmac_response(9)tpm2_end_auth_session(9)tpm2_start_auth_session(9)tpm2_create_primary(9)tpm2_sessions_init(9)
bestie listen β that's the whole squad, all eight of them, no gatekeeping π
and that's the page! π§ from ./drivers/char/tpm, dated October 2026, signed off in classic form as tpm2_parse_create_primary(9) β arrivederci, go parse something gorgeous πΈπ¦π
π¦ 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