cros_ec_usb_...pd_mux_state(9)
π
cros_ec_usb_get_pd_mux_state β bestie's guide to the Kernel API Manual, section 9
okay so picture this: you're deep in the kernel, section 9 of the Kernel API Manual, and you need the PD mux state for a given port. that's it. that's the whole vibe. this one's short and sweet and honestly kind of iconic for it β¨
π¦ NAME
cros_ec_usb_get_pd_mux_state β Get PD mux state for given port. no cap, that's literally what it does π
πΈ SYNOPSIS
int cros_ec_usb_get_pd_mux_state (struct cros_ec_extcon_info *info );
π ARGUMENTS
infoβ pointer tostruct cros_ec_extcon_info. that's your one (1) argument, she's carrying the whole call on her shoulders π«Ά
β RETURN
PD mux state on success, <0 on failure. so if you get a negative back, that's your villain arc, handle it π
lowkey important: the success case hands you the PD mux state itself, and failure is anything <0 β keep that vibe check in mind before you go using the return value π
π 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_role(9)cros_ec_pd_get_num_ports(9)
like, go read the whole friend group, they all slay together π
and that's the page fr fr π§ this lil masterpiece lives over in ./drivers/extcon, dated October 2026, stamped with the manual name cros_ec_usb_...pd_mux_state(9) β periodt, no notes π
π¦ 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