lwmi_om_hwmon_add(9)
π lwmi_om_hwmon_add β NAME
okay so bestie, welcome to the lwmi_om_hwmon_add(9) page β yes that's section 9, kernel-space, we're literally in the Kernel API Manual right now, no big deal β¨
lwmi_om_hwmon_add β register the HWMON device, but only once all the info has actually been collected π«Ά like it does a vibe check first and will not commit until everything's there, iykyk.
πΈ SYNOPSIS
void lwmi_om_hwmon_add (struct lwmi_om_priv *priv );
that's it. one function, returns void, takes one pointer. clean. minimal. iconic. π
π ARGUMENTS
privβ the driver's private data (struct lwmi_om_priv *). it's giving "main character data structure" β this is the driver's own little bag of stuff, and you're handing it over so the function can do its thing π
π¦ SEE ALSO
okay this is the part where she lists literally everyone in her contacts, and I mean everyone. all of these are (9) pages, all exact, no cap:
first up, the actual source file if you wanna go read the real thing π
- Kernel file
./drivers/platform/x86/lenovo/wmi-other.c
and then the whole friend group:
lwmi_om_fan_get_set(9)lwmi_om_hwmon_is_visible(9)lwmi_om_hwmon_read(9)lwmi_om_hwmon_write(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)
that's the whole group chat, everyone accounted for, nobody left on read π
ngl if you're poking around in./drivers/platform/x86/lenovoyou're already deep in it β go say hi towmi-other.cfor me π§
and that's the page!! mwah π this lil doc lives down in ./drivers/platform/x86/lenovo, it's dated October 2026, and it's filed under lwmi_om_hwmon_add(9) β see you in section 9 bestie, slay πβ¨
π¦ 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