lwmi_psy_prop_is_writeable(9)
π lwmi_psy_prop_is_writeable β the Kernel API Manual cutie
okay so bestie, buckle up, because we're diving into lwmi_psy_prop_is_writeable(9) from the Kernel API Manual and honestly? she's a tiny little function with one job and she does it. no cap. π
β¨ NAME β¨
lwmi_psy_prop_is_writeable β figure out whether a property is writeable or not π¦
πΈ SYNOPSIS πΈ
int lwmi_psy_prop_is_writeable (struct power_supply *ps , const struct
power_supply_ext *ext , void *ext_data , enum power_supply_property prop
);
like, four whole arguments. she's lowkey high-maintenance but we love her for it π
π ARGUMENTS π
psβ the battery that was extended π this is the main character right hereextβ the extension β¨ext_dataβ a pointer to thelwmi_om_privdrvdata π«Άpropβ the property we're checking, bestie π
π DESCRIPTION π
okay so the way this works is it checks capdata 00 to determine if the property is writable. that's it. that's the whole vibe. she peeks at capdata 00 and comes back with an answer. iconic behavior, honestly πβ¨
π₯ RETURN π₯
trueif writable πfalseif not π
fr fr, that's the whole return value situation. no surprises, no drama, just truthy or falsy.
π SEE ALSO π
bestie, this list is LONG and I'm obsessed with the range. she knows everybody π€
- 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_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)
like I said. she knows EVERYONE. main character energy fr ππ
and that's the whole page, bestie!! this one came from ./drivers/platform/x86/lenovo, dated October 2026, and she's filed under lwmi_psy_prop_is_writeable(9) β go forth and check those properties β¨ππ«Ά
π¦ 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