cros_ec_usb_get_power_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct 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 πŸ‘‘

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