ab8500_charg..._usb_current(9)
π ab8500_charger_get_usb_current(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're in the kernel docs now, and yes this page is short and sweet, we love a low-effort icon. π
β¨ NAME β¨
ab8500_charger_get_usb_current β get usb charger current ππ
πΈ SYNOPSIS πΈ
int ab8500_charger_get_usb_current (struct ab8500_charger *di );
that's it. that's the whole vibe check. π«Ά
π¦ ARGUMENTS π¦
diβ pointer to theab8500_chargerstructure π literally just a handle to the charger struct, nothing spicy.
β DESCRIPTION β
so what does it do, you ask? it returns the usb charger current. periodt. π₯
on success you get the usb current in microamperes β and on failure you get an error code instead π so like, don't just assume it's a number, check it, bestie.
heads up: microamperes. not amps, not milliamps. tiny units. the way that a "success" number and a "failure" error code come out of the same intβ¦ iconic but chaotic π
π SEE ALSO π
the whole squad, fr fr β here's everyone in the kernel file ./drivers/power/supply/ab8500_charger.c:
struct ab8500_charger_interrupts(9)struct ab8500_charger(9)ab8500_power_supply_changed(9)ab8500_charger_get_ac_voltage(9)ab8500_charger_ac_cv(9)ab8500_charger_get_vbus_voltage(9)ab8500_charger_get_ac_current(9)ab8500_charger_usb_cv(9)ab8500_charger_detect_chargers(9)ab8500_charger_max_usb_curr(9)ab8500_charger_read_usb_type(9)ab8500_charger_detect_usb_type(9)ab8500_charger_get_usb_cur(9)ab8500_charger_check_continue_stepping(9)ab8500_charger_set_current(9)ab8500_charger_set_vbus_in_curr(9)ab8500_charger_set_main_in_curr(9)ab8500_charger_set_output_curr(9)ab8500_charger_led_en(9)ab8500_charger_ac_en(9)ab8500_charger_usb_en(9)ab8500_charger_usb_check_enable(9)ab8500_charger_ac_check_enable(9)ab8500_charger_watchdog_kick(9)ab8500_charger_update_charger_current(9)ab8500_charger_check_vbat_work(9)ab8500_charger_check_hw_failure_work(9)ab8500_charger_kick_watchdog_work(9)ab8500_charger_ac_work(9)ab8500_charger_detect_usb_type_work(9)ab8500_charger_usb_link_attach_work(9)ab8500_charger_usb_link_status_work(9)ab8500_charger_check_usbchargernotok_work(9)ab8500_charger_check_main_thermal_prot_work(9)ab8500_charger_check_usb_thermal_prot_work(9)ab8500_charger_mainchunplugdet_handler(9)ab8500_charger_mainchplugdet_handler(9)ab8500_charger_mainextchnotok_handler(9)ab8500_charger_mainchthprotr_handler(9)ab8500_charger_mainchthprotf_handler(9)ab8500_charger_vbusdetf_handler(9)ab8500_charger_vbusdetr_handler(9)ab8500_charger_usblinkstatus_handler(9)ab8500_charger_usbchthprotr_handler(9)ab8500_charger_usbchthprotf_handler(9)ab8500_charger_usbchargernotokr_handler(9)ab8500_charger_chwdexp_handler(9)ab8500_charger_vbuschdropend_handler(9)ab8500_charger_vbusovv_handler(9)ab8500_charger_ac_get_property(9)ab8500_charger_usb_get_property(9)ab8500_charger_init_hw_registers(9)
likeβ¦ that's the entire extended friend group π iykyk
that's the page, bestie! π
sign-off time: this little gem lives in ./drivers/power/supply, dated October 2026 β go forth and read your microamperes responsibly πΈπ¦π
π¦ 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