cros_ec_usb_get_power_type(9)
π cros_ec_usb_get_power_type(9) π
okay bestie, welcome to the Kernel API Manual entry for cros_ec_usb_get_power_type(9) β yes, the whole manual name is folded in right here, you're welcome π«Ά. This one is lowkey niche but highkey useful if you're poking at USB-C power stuff. Let's get into it β¨
πΈ NAME πΈ
cros_ec_usb_get_power_type β get the power type info about the PD device attached to the given port π
π SYNOPSIS π
int cros_ec_usb_get_power_type (struct cros_ec_extcon_info *info );
π¦ ARGUMENTS π¦
infoβ pointer tostruct cros_ec_extcon_info. that's the whole vibe, bestie π«Ά
β¨ RETURN β¨
returns the power type on success, and <0 on failure π. no cap, that's the return contract.
π SEE ALSO π
- Kernel file
./drivers/extcon/extcon-usbc-cros-ec.cπ cros_ec_pd_command(9)cros_ec_usb_get_pd_mux_state(9)cros_ec_usb_get_role(9)cros_ec_pd_get_num_ports(9)
go read those too, iykyk π
and that's the page, bestie π β brought to you by the source/version line at ./drivers/extcon, dated October 2026, with the title energy of cros_ec_usb_get_power_type(9) πβ¨ slay.
π¦ 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