typec_get_drvdata(9)
π typec_get_drvdata β Kernel API Manual (9) π
okay so bestie, welcome to the typec_get_drvdata page from the Kernel API Manual, section 9, and honestly? it's giving "small but mighty." one function, one job, and she serves. let's get into it π«Ά
β¨ NAME β¨
typec_get_drvdata β return the private driver data pointer β¨
like, the whole personality of this function is "hand me the thing the driver tucked away in there." that's it. that's the vibe check and she passed π
πΈ SYNOPSIS πΈ
void * typec_get_drvdata (struct typec_port *port );
no cap, that's the whole signature. void * coming back at you, struct typec_port * going in. periodt π
π¦ ARGUMENTS π¦
portβ USB Type-C port π β this is the one and only thing you gotta give her. lowkey the whole relationship hinges on this port.
π SEE ALSO π
first up, the source of truth, the main character herself: Kernel file ./drivers/usb/typec/class.c β
and then, the entire group chat β every one of these is invited to the function party π
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_port_register_altmode(9)typec_port_register_cable_ops(9)typec_register_port(9)typec_unregister_port(9)
bestie bestie bestie β read the SEE ALSO list, don't skip it. i know it's long. she's thorough. respect the icon ππ
and that's the page!! πΈ this lil cutie lives in ./drivers/usb/typec, dated October 2026, and she's out here being iconic in the Kernel API Manual forever π
β¨π π§ββοΈ
π¦ 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