lwmi_om_fan_info_init(9)
π lwmi_om_fan_info_init π
So this is a page from the Kernel API Manual β yes bestie, the kernel has its own manual and it's lowkey iconic. Anyway, buckle up, this one's short and sweet.
β¨ NAME β¨
lwmi_om_fan_info_init β the little setup fairy that gets your fan info ready before anything else touches it π§
πΈ SYNOPSIS πΈ
void lwmi_om_fan_info_init (struct lwmi_om_priv *priv );
Note the void β this one does not come back with gossip. It just does the thing and dips. π
π ARGUMENTS π
privβ the driver private data. It's basically the function's whole personality, like it's the one and only thing it needs to know about the world. π«Ά
π¦ DESCRIPTION π¦
Okay so here's the tea: lwmi_om_fan_info_collect_cd00 and lwmi_om_fan_info_collect_cd_fan are chaotic little gremlins β they may be called in an arbitrary order. No rules, no structure, no "after you" energy. π
Because of that, the initialization must be done before. Periodt. You gotta run lwmi_om_fan_info_init first so the info is actually, y'know, ready, before those two start throwing data around.
fr fr, do the init first. That's the whole vibe check of this function. β
π₯ SEE ALSO π₯
The kernel file herself β go read the source, it's giving main character energy:
- Kernel file
./drivers/platform/x86/lenovo/wmi-other.c
And now the whole friend group, no cap, every single one:
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_add(9)lwmi_om_hwmon_remove(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 page, bestie π β brought to you from ./drivers/platform/x86/lenovo, stamped October 2026, and living its best life in the Kernel API Manual. 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