wmi_evaluate_method(9)
π wmi_evaluate_method β the kernel API manual, but make it make sense
okay so bestie, welcome to the wmi_evaluate_method(9) page π this is a kernel API manual, and yes we're doing this together, you're gonna slay this.
β¨ NAME β¨
wmi_evaluate_method β evaluate a WMI method (and likeβ¦ it's deprecated, bestie, i'm so serious π)
π¦ SYNOPSIS π¦
acpi_status wmi_evaluate_method (const char *guid_string , u8 instance ,
u32 method_id , const struct acpi_buffer *in , struct acpi_buffer *out
);
π ARGUMENTS π
guid_stringβ a 36 character string, and it's giving exactly this form:fa50ff2b-f2e8-45de-83fa-65417f2f49ba. iconic little UUID vibe, no cap πinstanceβ the instance index, like which one of them you're talking tomethod_idβ the method ID you wanna call, yep that oneinβ a mandatory buffer containing the input for the method call, so don't come to the function empty-handed πoutβ an empty buffer that the method results get returned into, it's literally the vessel β¨
π DESCRIPTION π
So what this does: it calls an ACPI-WMI method. that's it, that's the whole thing π«Ά
β οΈ but bestie listen: the caller must free out. you. you free it. nobody's gonna come do it for you, it's your mess now β¨ also, reminder that this whole function is deprecated, so maybe go look at the newer kids in SEE ALSO, iykyk π
π RETURN π
Returns an acpi_status signaling success or error β so like, it either ate or it flopped, and you'll know which π
πΈ SEE ALSO πΈ
Kernel file ./drivers/platform/wmi/core.c β go read the source, it's lowkey the main character π
wmi_instance_count(9)wmidev_instance_count(9)wmidev_evaluate_method(9)wmidev_invoke_method(9)wmidev_invoke_procedure(9)wmi_query_block(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)
and that's the page, bestie, you ate that π this one came from the ./drivers/platform/wmi source, dated October 2026, and it's filed under wmi_evaluate_method(9) β mwah, go forth and free your buffers πβ¨π
π¦ 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