cpcap_batter..._avg_current(9)
π cpcap_battery_cc_get_avg_current β NAME β¨
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel land today, and no you don't need to be scared π«Ά. This one is cpcap_battery_cc_get_avg_current, and what it does is literally read the cpcap coulumb counter (that spelling is the driver's, not mine, I promise π).
πΈ SYNOPSIS πΈ
int cpcap_battery_cc_get_avg_current (struct cpcap_battery_ddata *ddata
);
it hands you back an int, that's the whole vibe π«
π ARGUMENTS π
ddataβ the cpcap battery driver's device data, like the main character of this whole operation π. that's it, that's the one arg.
π₯ SEE ALSO π₯
- Kernel file
./drivers/power/supply/cpcap-battery.cβ go read the source, it's giving lore β¨ cpcap_battery_cc_raw_div(9)cpcap_battery_read_accumulated(9)
ngl this one's short and sweet β one argument, one return value, zero drama π keep ddata exactly as it comes and you're slaying π
and that's the page!! π¦ sign-off time: this lives under ./drivers/power/supply, dated October 2026, and it's the cpcap_batter..._avg_current(9) page β periodt ππΈ
π¦ 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