bq257xx_get_...ger_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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