wmidev_block_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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