lwmi_om_hwmon_write(9)
π 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 withattrβ the Attribute identifier, the specific thing you wantchannelβ 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:
lwmi_om_fan_get_set(9)lwmi_om_hwmon_is_visible(9)lwmi_om_hwmon_read(9)lwmi_om_hwmon_add(9)lwmi_om_hwmon_remove(9)lwmi_om_fan_info_init(9)lwmi_om_fan_info_collect_cd00(9)lwmi_om_fan_info_collect_cd_fan(9)lwmi_psy_ext_get_prop(9)lwmi_psy_ext_set_prop(9)lwmi_psy_prop_is_supported(9)lwmi_psy_prop_is_writeable(9)lwmi_add_battery(9)lwmi_remove_battery(9)lwmi_acpi_match(9)lwmi_om_psy_ext_init(9)lwmi_om_psy_remove(9)tunable_attr_01_id(9)int_type_show(9)attr_capdata01_show(9)attr_current_value_store(9)attr_current_value_show(9)lwmi_attr_01_is_supported(9)lwmi_om_fw_attr_add(9)lwmi_om_fw_attr_remove(9)lwmi_om_master_bind(9)lwmi_om_master_unbind(9)
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
- 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