bq257xx_pro...is_writeable(9)
π
bq257xx_property_is_writeable β the vibe check for writeability
okay so bestie, this is a page out of the Kernel API Manual (yes, the Kernel API Manual, we're fancy now) and it's all about one tiny little function that answers the most important question in any relationship: can I write to you or not? π«Ά
β¨ NAME β¨
bq257xx_property_is_writeable β literally just checks if a property is writeable. that's it. that's the whole thing. π
π SYNOPSIS π
int bq257xx_property_is_writeable (struct power_supply *psy , enum
power_supply_property prop );
πΈ ARGUMENTS πΈ
psyβ the power supply device. the main character of this whole situation πpropβ the power supply property you're side-eyeing and want to check π
π¦ DESCRIPTION π¦
so what does it actually do? it determines which power supply properties can be written to. and listen β the guest list is short, it's giving exclusive VIP section:
- charge current limit
- charge voltage limit
- input current limit
those three and only those three are writeable. everybody else? not on the list, not getting in. periodt. π
β RETURN β
- returns
1if the property is writeable π₯ - returns
0otherwise π§
(no in-between, no "it's complicated", just a clean little binary vibe check.)
π SEE ALSO π
Kernel file ./drivers/power/supply/bq257xx_charger.c β and honestly, the whole friend group:
struct bq257xx_chip_info(9)struct bq257xx_chg(9)bq25792_read16(9)bq25792_write16(9)bq25703_get_state(9)bq25792_get_state(9)bq25703_get_min_vsys(9)bq25792_get_min_vsys(9)bq25703_set_min_vsys(9)bq25792_set_min_vsys(9)bq25703_get_cur(9)bq25792_get_cur(9)bq25703_get_ichg_cur(9)bq25792_get_ichg_cur(9)bq25703_set_ichg_cur(9)bq25792_set_ichg_cur(9)bq25703_get_chrg_volt(9)bq25792_get_chrg_volt(9)bq25703_set_chrg_volt(9)bq25792_set_chrg_volt(9)bq25703_get_iindpm(9)bq25792_get_iindpm(9)bq25703_set_iindpm(9)bq25792_set_iindpm(9)bq25703_get_vbat(9)bq25792_get_vbat(9)bq25703_hw_init(9)bq25792_hw_init(9)bq25703_hw_shutdown(9)bq25792_hw_shutdown(9)bq257xx_set_charger_property(9)bq257xx_get_charger_property(9)bq257xx_external_power_changed(9)bq257xx_irq_handler_thread(9)bq257xx_parse_dt(9)bq257xx_charger_probe(9)bq257xx_charger_shutdown(9)
like, go read them, they're all iconic in their own way π
and that's the page babes β¨ it lives in ./drivers/power/supply, it's dated October 2026, and it's bq257xx_pro...is_writeable(9) all the way down. mwah π
π¦ 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