lwmi_psy_ext_set_prop(9)
okay so bestie, this is lwmi_psy_ext_set_prop(9) from the Kernel API Manual β yes, the one and only β¨. She sets a power_supply_ext property, and honestly? Iconic behavior.
π NAME π
lwmi_psy_ext_set_prop β Set a power_supply_ext property. That's the whole assignment, no cap.
β¨ SYNOPSIS β¨
int lwmi_psy_ext_set_prop (struct power_supply *ps , const struct
power_supply_ext *ext , void *ext_data , enum power_supply_property prop
, const union power_supply_propval *val );
π«Ά ARGUMENTS π«Ά
psβ the battery that was extended. main character battery energy.extβ the extension. the glow-up wrapper.ext_dataβ pointer to thelwmi_om_privdrvdata. literally the little data bag it carries.propβ the property to write. pick your fave property.valβ the value to write. the value bestie.
π¦ DESCRIPTION π¦
Writes the given value to the power_supply_ext property. That's it, that's the vibe: write the value, slay, done π
.
πΈ RETURN πΈ
0 on success, or an error. success is 0 β she ate and left no crumbs; anything else is an error, 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_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)
cute sign-off: this page lives under ./drivers/platform/x86/lenovo and is dated October 2026 π. byeee, go set those props responsibly, bestie π
π¦ 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