wmi_query_block(9)
π 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 au8bestie, so keep it smoloutβ 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:
wmi_instance_count(9)wmidev_instance_count(9)wmi_evaluate_method(9)wmidev_evaluate_method(9)wmidev_invoke_method(9)wmidev_invoke_procedure(9)wmidev_block_query(9)wmidev_query_block(9)wmi_set_block(9)wmidev_block_set(9)wmidev_set_block(9)wmi_install_notify_handler(9)wmi_remove_notify_handler(9)wmi_has_guid(9)wmi_get_acpi_device_uid(9)wmi_driver_unregister(9)
β οΈ 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
- 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