wmi_query_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wmi_query_block β€” bestie edition

okay so this is from the Kernel API Manual, section 9, and the page is literally called wmi_query_block(9). stay with me, it's a short one but it's important 🫢


✨ NAME ✨

wmi_query_block β€” returns the contents of a WMI block. and yeah, she's deprecated 😭 so like… be aware of that going in, no cap.


🌸 SYNOPSIS 🌸

acpi_status wmi_query_block (const char *guid_string , u8 instance ,
       struct acpi_buffer *out );

πŸŽ€ ARGUMENTS πŸŽ€

  • guid_string β€” a 36 char string, and it has to look exactly like this: fa50ff2b-f2e8-45de-83fa-65417f2f49ba. like, that's the shape of it, the whole GUID vibe πŸ’«
  • instance β€” the instance index, that's a u8 bestie, so keep it smol
  • out β€” an empty buffer that the contents of the data block get returned into. empty is the key word here, don't come in with a pre-filled one πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

So what she actually does: you query a single ACPI-WMI block, and then the caller β€” that's you, girlie β€” must free out. like, that's on you, not on the function. don't ghost that buffer πŸ’€


⭐ RETURN ⭐

You get back an ACPI object containing the content of the WMI block. that's the prize 🎁


🌈 SEE ALSO 🌈

If you wanna go deeper, the kernel file to look at is ./drivers/platform/wmi/core.c (iykyk). and here's the whole little friend group of related calls, all of them, yes all of them:


⚠️ real talk: this one is marked deprecated in the NAME section, so maybe don't build your whole main character arc around it? just saying πŸ’…

that's the whole page, you ate it up honestly πŸ‘‘ this cutie lives at ./drivers/platform/wmi, dated October 2026, and it's wmi_query_block(9) β€” mwah, go free that buffer now πŸ“πŸ’œ

πŸ“¦ where this page comes from