STRUCT QSEE_REQ_UEFI_GET_VARIABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ok so bestie, welcome to the <pink>Kernel API Manual</pink> ✨ β€” this one's all about struct qsee_req_uefi_get_variable, which is literally just the Request for GetVariable command. that's it, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

like, here's the whole glow-up of the struct, no cap:

struct qsee_req_uefi_get_variable {
    u32 command_id;
    u32 length;
    u32 name_offset;
    u32 name_size;
    u32 guid_offset;
    u32 guid_size;
    u32 data_size;
 };

πŸ¦‹ Members πŸ¦‹

okay so let's meet the squad, one field at a time πŸ‘‘

  • command_id β€” the ID of the command, and it must be QSEE_CMD_UEFI_GET_VARIABLE. no substitutions, no "close enough" β€” it's giving strict πŸ’€
  • length β€” the length of the request, in bytes. and bestie, that includes this struct and any parameters (name, GUID) stored after it, plus any padding thereof for alignment. so like, the whole package, not just the struct itself 🫢
  • name_offset β€” the offset from the start of this struct to where the variable name is stored, in bytes (and the name is stored as a utf-16 string, iykyk ✨).
  • name_size β€” the size of the name parameter, in bytes, including the null-terminator. don't forget the terminator, she matters 😭
  • guid_offset β€” the offset from the start of this struct to where the GUID parameter is stored, in bytes πŸ“
  • guid_size β€” the size of the GUID parameter, in bytes, i.e. sizeof(efi_guid_t). exact, iconic, no notes πŸ’…
  • data_size β€” the size of the output buffer, in bytes. yes, output β€” main character energy for a buffer 🧚

🌈 SEE ALSO 🌈

go peek at the kernel file ./drivers/firmware/qcom/qcom_qseecom_uefisecapp.c fr fr, and while you're at it, the whole friend group:

  • struct qsee_rsp_uefi_get_variable(9)
  • struct qsee_req_uefi_set_variable(9)
  • struct qsee_rsp_uefi_set_variable(9)
  • struct qsee_req_uefi_get_next_variable(9)
  • struct qsee_rsp_uefi_get_next_variable(9)
  • struct qsee_req_uefi_query_variable_info(9)
  • struct qsee_rsp_uefi_query_variable_info(9)
literally read them all together like a group chat, they make way more sense as a set 🫢

and that's the whole page babes πŸ’– this lil love letter lives in ./drivers/firmware/qcom, dated October 2026, and yes it's still called struct qsee...get_variable(9) in the corner because we keep it iconic and unchanged ⭐ slay, go read some UEFI variables now πŸ‘‘

πŸ“¦ where this page comes from