svsm_vtpm_cmd_request_fill(9)
π svsm_vtpm_cmd_request_fill(9) β the "pack your TPM command into a request" girlie β¨
Okay bestie, gather round, because this is one of those little kernel helpers from the Kernel API Manual that does exactly one job and does it slayfully π
. svsm_vtpm_cmd_request_fill takes your raw TPM command bytes and packages them up into a TMP_SEND_COMMAND request so it can be sent off to SVSM. That's it. That's the whole vibe check. π
πΈ NAME πΈ
svsm_vtpm_cmd_request_fill β fill a TMP_SEND_COMMAND request to be sent to SVSM β¨
π¦ SYNOPSIS π¦
int svsm_vtpm_cmd_request_fill (struct svsm_vtpm_cmd_request *req , u8
locality , const u8 *buf , size_t len );
Lowkey just four args and a return value, and she ate. π₯
π ARGUMENTS π
reqβ thestruct svsm_vtpm_cmd_requestyou want filled, bestie. This is the blank canvas, the empty fit that's about to get styled. π«Άlocalityβ the locality. Yep, that's the whole description, anu8, no cap. It's the locality, okay? πbufβ the buffer where the payload of the command gets copied from. It'sconst, so hands off, we're only reading. πlenβ the size of the buffer. It's asize_t, so be normal about it. β¨
β RETURN β
0on success β slay, it worked, main character energy π- a negative error code on failure β not slay, something went sideways, check the errno vibe π
π SEE ALSO π
Kernel file ./include/linux/tpm_svsm.h and its whole friend group:
struct svsm_vtpm_request(9)struct svsm_vtpm_response(9)struct svsm_vtpm_cmd_request(9)struct svsm_vtpm_cmd_response(9)svsm_vtpm_cmd_response_parse(9)
iykyk, go read them, they're all connected π§
ngl this page is short but she's iconic. Every argument listed, every return value honoured, every SEE ALSO reference kept intact. Periodt. π
Later, bestie β this one's from ./include/linux, dated October 2026, and it lives its life as page svsm_vtpm_cmd_request_fill(9). Mwah. π
π¦ 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