STRUCT SMM_VARIABLE_QUERY_INFO(9)
π 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
- 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