lwmi_om_hwmon_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lwmi_om_hwmon_write(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's lwmi_om_hwmon_write(9) and it's literally the function that pushes your config values down into the hardware through WMI. let me walk you through it 🫢


✨ NAME ✨

lwmi_om_hwmon_write β€” the one that writes HWMON sensor data πŸŽ€


🌸 SYNOPSIS 🌸

int lwmi_om_hwmon_write (struct device *dev , enum hwmon_sensor_types
type , u32 attr , int channel , long val );

that's the whole signature, no cap. five args, one int coming back atcha πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the Device pointer, aka who we're talking to πŸ‘‘
  • type β€” the Sensor type, like which flavor of sensor we're dealing with
  • attr β€” the Attribute identifier, the specific thing you want
  • channel β€” the Channel index, picking which lane πŸ›£οΈ
  • val β€” the Value to write, the actual payload, the main character of this whole operation ⭐

πŸ’œ DESCRIPTION πŸ’œ

so what does it do? it writes configuration values to hardware through the WMI interface. that's it, that's the vibe. config in, hardware gets it, slay ✨


πŸ“ RETURN πŸ“

0 on success πŸŽ‰ β€” or an error code if things did NOT go off πŸ™ˆ


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/platform/x86/lenovo/wmi-other.c β€” go look, iykyk πŸ“‚

and here's the whole friend group, fr fr:


and that's the page!! mwah πŸ’‹ this whole thing ships from ./drivers/platform/x86/lenovo, dated October 2026 β€” go forth and write those sensor values, bestie, i believe in you πŸ§šπŸ’–

πŸ“¦ where this page comes from