lwmi_om_master_bind(9)
π lwmi_om_master_bind(9)
okay so bestie, welcome to the Kernel API Manual entry for lwmi_om_master_bind(9) β yes that's the full name, yes it's a mouthful, no we're not shortening it, she earned it π
β¨ NAME β¨
lwmi_om_master_bind β the function that binds, like, all the components of the other mode driver π«Ά
β¨ SYNOPSIS β¨
int lwmi_om_master_bind (struct device *dev );
β¨ ARGUMENTS β¨
devβ the lenovo-wmi-other driver's basic device. that's the one, that's the vibe check subject πΈ
β¨ DESCRIPTION β¨
So here's what happens, and ngl it's kind of a lot but it slays π₯
It calls component_bind_all to bind the lenovo-wmi-capdata devices to the lenovo-wmi-other master driver β and it does it with a callback, specifically to collect fan info from capdata_fan. iconic behavior honestly.
On success, it assigns the capability data list pointers to the driver data struct so you can get at them later. > β οΈ heads up bestie: these pointers are only valid while the capdata interfaces exist. like, they're borrowed, not owned. don't go keeping them past their moment π
Finally (yes there's a finally), it collects fan info from capdata00 and registers all the firmware attribute groups. π
π«Ά important caveat, pay attention: the HWMON device is registered only if all fan info is collected. which is exactly why it is not registered here. so don't come for her about the missing hwmon, it's on purpose, iykyk.
See lwmi_om_fan_info_collect_cd00 and lwmi_om_fan_info_collect_cd_fan for the fan-info-collecting of it all. π
β¨ RETURN β¨
0 on success, or an error code. simple as that, periodt β
β¨ SEE ALSO β¨
Kernel file ./drivers/platform/x86/lenovo/wmi-other.c
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_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_unbind(9)
okay that's the whole page bestie, go forth and bind responsibly π
this masterpiece lives at ./drivers/platform/x86/lenovo, dated October 2026, and she answers to lwmi_om_master_bind(9) β mwah, ily, bye πβ¨
π¦ 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