bq257xx_get_...ger_property(9)
okay so bestie, welcome to the Kernel API Manual, section 9 β this is the page for bq257xx_get_...ger_property(9), aka bq257xx_get_charger_property. π
β¨ NAME β¨
bq257xx_get_charger_property β get a power supply property. that's the whole vibe: it's the getter for power-supply properties.
πΈ SYNOPSIS πΈ
int bq257xx_get_charger_property (struct power_supply *psy , enum
power_supply_property psp , union power_supply_propval *val );
π ARGUMENTS π
psyβ power supply device; like, the power-supply object we're asking about.pspβ power supply property to get; the specific property we want.valβ pointer to store the property value; where the answer goes.
π¦ DESCRIPTION π¦
okay so this function handles requests to get power supply properties, and the list includes status, health, manufacturer, online state, and various voltage/current measurements. it reads current device state and routes chip-specific property requests to appropriate handlers. no cap, it's giving switchboard energy but for power-supply properties. π
π₯ RETURN π₯
Returns 0 on success or -EINVAL if property is not supported. if you get -EINVAL, that property is literally not supported β don't shoot the messenger. π
π SEE ALSO π
bestie, here's the whole friend group β the kernel file plus every function ref from the page:
- Kernel file
./drivers/power/supply/bq257xx_charger.c 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_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)
mwah π this page came from ./drivers/power/supply, dated October 2026, in the Kernel API Manual β bye bestie, go get those charger 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