bq257xx_irq_handler_thread(9)
π bq257xx_irq_handler_thread(9) β the charger-interrupt handler bestie π
okay so this one lives in the Kernel API Manual, section 9, and it's literally all about handling charger interrupts. it's giving "backstage pass to the power supply subsystem" energy and honestly? iconic. π
β¨ NAME β¨
bq257xx_irq_handler_thread β handle charger interrupt π«Ά
β¨ SYNOPSIS β¨
irqreturn_t bq257xx_irq_handler_thread (int irq , void *private );
β¨ ARGUMENTS β¨
irqβ the interrupt number. that's it, that's the number of the interrupt, no cap πprivateβ a pointer to the driver's private data. bestie, this is where the driver keeps its stuff π₯
β¨ DESCRIPTION β¨
so this is the thread handler for charger interrupts. it's the one that actually does the follow-up work once a charger event comes knocking β¨
when it runs, it triggers a re-evaluation of the external power status, and it updates the power supply state in response to charger events. so like, charger does a thing β this handler notices β power state gets refreshed. main character energy, truly π
β¨ RETURN β¨
returns IRQ_HANDLED if the interrupt was processed. that's the vibe check passing π
β¨ SEE ALSO β¨
the kernel file ./drivers/power/supply/bq257xx_charger.c, plus literally 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_property_is_writeable(9)bq257xx_external_power_changed(9)bq257xx_parse_dt(9)bq257xx_charger_probe(9)bq257xx_charger_shutdown(9)
π reminder bestie: this page is filed under ./drivers/power/supply and dated October 2026. that's the source/version + date lore, pls respect it π
and that's the whole page, go off, stan a charger interrupt handler πβ¨ππΈ
π¦ 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