cros_ec_pd_get_num_ports(9)
πΈ NAME πΈ
okay so bestie, welcome to cros_ec_pd_get_num_ports(9) from the Kernel API Manual π this is the function that gets the number of EC charge ports β literally just the port count, no cap. It's giving βquick headcount for your charge portsβ and I'm obsessed β¨
β¨ SYNOPSIS β¨
the whole vibe is:
int cros_ec_pd_get_num_ports (struct cros_ec_extcon_info *info );
π ARGUMENTS π
infoβ a pointer tostruct cros_ec_extcon_info. that's the one and only argument, bestie π«Ά
π₯ RETURN π₯
on success you get the number of ports π and on failure you get <0 π keep it cute, keep it checked.
π SEE ALSO π
- Kernel file:
./drivers/extcon/extcon-usbc-cros-ec.cπ¦ cros_ec_pd_command(9)cros_ec_usb_get_power_type(9)cros_ec_usb_get_pd_mux_state(9)cros_ec_usb_get_role(9)
those are the related manual pages, iykyk π
mwah π
this page is signed off from the ./drivers/extcon source/version corner, dated October 2026, and it's still cros_ec_pd_get_num_ports(9) β 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