cros_ec_usb_...pd_mux_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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