bq257xx_set_...ger_property(9)
π bq257xx_set_charger_property(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for bq257xx_set_charger_property, and yes the title got squished to bq257xx_set_...ger_property(9) in the header because manpage headers are dramatic like that. anyway. let's get into it π«Ά
β¨ NAME β¨
bq257xx_set_charger_property β Set a power supply property. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int bq257xx_set_charger_property (struct power_supply *psy , enum
power_supply_property prop , const union power_supply_propval *val );
literally the whole signature, no cap. π
π ARGUMENTS π
psyβ the power supply device. your main character, the thing we're actually talking to πpropβ the power supply property we're setting. which knob are we turning, bestie?valβ the value we want that property to be. the actual number. the tea β
π¦ DESCRIPTION π¦
so what does this thing do? it handles requests to set power supply properties β the big ones being:
- input current limit
- constant charge voltage
- constant charge current
and then it routes the request to the chip-specific implementation. so like, this function is the front desk, and the actual chip-specific code is the specialist in the back office doing the real work. it's giving delegation. it's giving manager energy. iconic honestly π
π RETURN π
- returns
0on success π - returns
-EINVALif the property is not supported π
fr fr bestie, if you get -EINVAL back it's not a bug, it's the kernel politely telling you "that property? never heard of her." π
β SEE ALSO β
all the little friends in the family β the kernel file is ./drivers/power/supply/bq257xx_charger.c, and here's the whole squad:
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_get_charger_property(9)bq257xx_property_is_writeable(9)bq257xx_external_power_changed(9)bq257xx_irq_handler_thread(9)bq257xx_parse_dt(9)bq257xx_charger_probe(9)bq257xx_charger_shutdown(9)
like. that's the whole group chat. say hi to all of them π§π
and that's the page!! sign-off time πβ¨ this little beauty lives in ./drivers/power/supply, it's dated October 2026, and it's part of the Kernel API Manual β the header up top still calls it bq257xx_set_...ger_property(9) because the abbreviation ate the middle of the name and honestly? we respect it. byeee bestie, go set some 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