typec_set_pwr_role(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to typec_set_pwr_role(9) from the Kernel API Manual β€” the page for the routine that reports a power role change. It's giving "port driver just had a power-role glow-up and needs everyone to know" energy. πŸ’…βœ¨

✨ SYNOPSIS ✨

void typec_set_pwr_role (struct typec_port *port , enum typec_role role );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the USB Type-C Port where the role was changed. This is the main character port, iykyk. πŸ”Œ
  • role β€” "The new data role." Yes, the page literally says "data role" right here, bestie β€” keep that exact wording in your notes, no cap. πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

This routine is used by the port drivers to report power role changes. That's the whole vibe: port drivers call it when they need to say "hey, the power role changed", and this routine handles the reporting. ✨

🌈 SEE ALSO 🌈

Kernel file: ./drivers/usb/typec/class.c.

The whole SEE ALSO squad, in the original order, fr fr: typec_altmode_update_active(9), typec_altmode2port(9), typec_altmode_set_ops(9), typec_unregister_altmode(9), typec_partner_set_usb_mode(9), typec_partner_set_identity(9), typec_partner_set_pd_revision(9), typec_partner_set_usb_power_delivery(9), typec_partner_set_num_altmodes(9), typec_partner_register_altmode(9), typec_partner_set_svdm_version(9), typec_partner_usb_power_delivery_register(9), typec_register_partner(9), typec_unregister_partner(9), typec_plug_set_num_altmodes(9), typec_plug_register_altmode(9), typec_register_plug(9), typec_unregister_plug(9), typec_cable_get(9), typec_cable_put(9), typec_cable_is_active(9), typec_cable_altmode_unsupported(9), typec_cable_set_identity(9), typec_register_cable(9), typec_unregister_cable(9), typec_port_set_usb_mode(9), typec_port_set_usb_power_delivery(9), typec_set_data_role(9), typec_get_data_role(9), typec_set_vconn_role(9), typec_set_pwr_opmode(9), typec_find_pwr_opmode(9), typec_find_orientation(9), typec_find_port_power_role(9), typec_find_power_role(9), typec_find_port_data_role(9), typec_set_orientation(9), typec_get_orientation(9), typec_set_mode(9), typec_get_negotiated_svdm_version(9), typec_get_cable_svdm_version(9), typec_cable_set_svdm_version(9), typec_get_drvdata(9), typec_port_register_altmode(9), typec_port_register_cable_ops(9), typec_register_port(9), typec_unregister_port(9).


and that's the page, bestie 🫢 β€” footer check: source/version is ./drivers/usb/typec, date is October 2026, and the page is typec_set_pwr_role(9). byeee πŸ‘‘πŸ’–

πŸ“¦ where this page comes from