tpm2_load_cmd(9)
tpm2_load_cmd(9) π
okay so this little icon is straight out of the Kernel API Manual, and it's literally the function that executes a TPM2_Load command. no cap, it's giving "load the key into the TPM" energy. π«Ά
β¨ NAME β¨
tpm2_load_cmd β execute a TPM2_Load command. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int tpm2_load_cmd (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options , u32 *blob_handle );
π ARGUMENTS π
chipβ TPM chip to use. your main character TPM, basically. πpayloadβ the key data in clear and encrypted form. both forms, bestie β it's got layers. πoptionsβ authentication values and other options. all the auth-y bits and extra settings. π₯blob_handleβ returned blob handle. that's what comes back out. β¨
π RETURN π
0on success. slay. β-E2BIGon wrong payload size. wrong payload size, not the vibe. π-EPERMon tpm error status. the TPM is not having it. π< 0error fromtpm_send. anything less than zero meanstpm_sendsaid nope. π
π SEE ALSO π
- Kernel file
./security/keys/trusted-keys/trusted_tpm2.c tpm2_buf_append_auth(9)tpm2_seal_trusted(9)tpm2_unseal_cmd(9)tpm2_unseal_trusted(9)
that's the whole page, bestie! π source ./security/keys/trusted-keys, dated October 2026, and it's tpm2_load_cmd(9) β periodt. π
π¦ 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