wmidev_block_set(9)
π wmidev_block_set(9) β the kernel API manual, bestie edition π
okay so bestie, we're deep in the Kernel API Manual today and the page we're reading is literally called wmidev_block_set. say it with me. wmi-dev-block-set. slay. β¨
β¨ NAME β¨
wmidev_block_set β write to a WMI block. and yeahβ¦ it's deprecated π (we'll get to that, don't panic).
πΈ SYNOPSIS πΈ
acpi_status wmidev_block_set (struct wmi_device *wdev , u8 instance ,
const struct acpi_buffer *in );
that's the whole signature. look at her. iconic. copy it exactly if you're writing code, no cap. π
π¦ ARGUMENTS π¦
wdevβ a wmi bus device, straight from a driver. like, the device you're working with, bestie.instanceβ the instance index. which one of them. the index. you know the vibe. π’inβ a buffer holding the new values for the data block. this is the stuff you're writing in. π«Ά
π§ DESCRIPTION π§
so what does she actually do? she writes the contents of the input buffer into an ACPI-WMI data block. that's it. that's the whole plot. π
β οΈ real talk though: this function is deprecated. the manpage says so right there in the NAME section, so don't come for me. if you're out here writing new code with it, maybe peek at the SEE ALSO list below first, iykyk. π
β RETURN β
she returns an acpi_status β which is just signalling success or error. your classic "did it work or did it not" moment. no surprises. π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/platform/wmi/core.c, and here's the whole friend group of related functions β all of them, bestie, I'm not skipping a single one:
wmi_instance_count(9)wmidev_instance_count(9)wmi_evaluate_method(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_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)
like, the whole squad. main character energy all around. π
and that's the page!! π this little gem comes from the source tree at ./drivers/platform/wmi, dated October 2026 β so go forth, know your blocks, and maybe don't use the deprecated one, mwah ππ¦β¨
π¦ 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