svsm_vtpm_cm...sponse_parse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual, section 9 β€” the vibe is very kernel-core and the main character is svsm_vtpm_cmd_response_parse πŸ’…βœ¨. This is the lil function that parses a TPM_SEND_COMMAND response received from SVSM, and yes it’s giving β€œtiny but important” 🫢.

🌸 NAME 🌸

svsm_vtpm_cmd_response_parse β€” Parse a TPM_SEND_COMMAND response received from SVSM. Periodt.

✨ SYNOPSIS ✨

int svsm_vtpm_cmd_response_parse (const struct svsm_vtpm_cmd_response
       *resp , u8 *buf , size_t len );

πŸŽ€ ARGUMENTS πŸŽ€

  • resp β€” the struct svsm_vtpm_cmd_response to parse. That’s the input, bestie πŸ“.
  • buf β€” the buffer where to copy the response. Put the response here, slay πŸ’….
  • len β€” the size of the buffer. Respect the length, always β€” len is not decorative.

πŸ”₯ RETURN πŸ”₯

On success: buffer size filled with the response πŸŽ‰. On failure: negative error code 😭. That’s the return tea, no cap.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/tpm_svsm.h
  • 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_request_fill(9)

mwah πŸ’‹ this page lives in ./include/linux, dated October 2026, and it’s literally the svsm_vtpm_cm...sponse_parse(9) manual page. 🫢

πŸ“¦ where this page comes from