typec_port_...er_cable_ops(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, we’re in the Kernel API Manual and today’s main character is typec_port_register_cable_ops(9). what’s her whole thing? register typec_cable_ops to port altmodes. that’s the name, that’s the vibe, periodt. ✨

✨ SYNOPSIS ✨

void typec_port_register_cable_ops (struct typec_altmode **altmodes ,
       int max_altmodes , const struct typec_cable_ops *ops );

πŸŽ€ ARGUMENTS πŸŽ€

three little parameters walk into the port, and they are:

  • altmodes β€” USB Type-C Port's altmode vector. literally the port’s altmode vector, okay? πŸ¦‹
  • max_altmodes β€” The maximum number of alt modes supported by the port. the max number of alt modes the port supports, no cap? bestie there is a cap 😭
  • ops β€” Cable alternate mode vector. cable alternate mode vector, slay. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file: ./drivers/usb/typec/class.c. and the whole see-also squad is 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_pwr_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_register_port(9), and typec_unregister_port(9). iykyk 🫢


that’s the whole page, bestie πŸ’– this one’s from the Kernel API Manual, source path ./drivers/usb/typec, dated October 2026, with the footer title typec_port_...er_cable_ops(9). mwah πŸ’‹πŸ’…

πŸ“¦ where this page comes from