STRUCT SMM_VARIABLE_QUERY_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct smm_variable_query_info(9) β€” a Kernel API Manual moment

okay bestie, welcome to the Kernel API Manual ✨ this one's a struct page and it's lowkey iconic if you're into EFI/StMM stuff πŸ¦‹ (and if you're not, you're about to be, trust)

🌸 NAME 🌸

struct smm_variable_query_info β€” the little struct that gets used to communicate with StMM for QueryVariableInfo. that's it, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

struct smm_variable_query_info {
    u64 max_variable_storage;
    u64 remaining_variable_storage;
    u64 max_variable_size;
    u32 attr;
 };

like, look at her. four fields, fully structured, main character energy πŸ‘‘


🫢 Members 🫢

  • max_variable_storage β€” the max available storage, fr fr πŸ’– this is the ceiling, the limit, the absolute most.
  • remaining_variable_storage β€” the remaining available storage, aka how much room is still left for you πŸ₯Ί
  • max_variable_size β€” the max variable supported size. biggest variable she can handle, no cap πŸ’…
  • attr β€” the attributes to query storage for πŸ”₯ so like, which attributes we're asking about storage-wise. specific queen behavior.

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/firmware/efi/stmm/mm_communication.h and honestly her whole friend group:

  • struct efi_mm_communicate_header(9)
  • struct smm_variable_communicate_header(9)
  • struct smm_variable_access(9)
  • struct smm_variable_payload_size(9)
  • struct smm_variable_getnext(9)
  • struct var_check_property(9)
  • struct smm_variable_var_check_property(9)

go read them, iykyk πŸ“šβœ¨


ngl this page lives in ./drivers/firmware/efi/stmm and it's dated October 2026 🌈 so like, remember her like that.

mwah, that's the whole page bestie, go forth and query variable info responsibly πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from