typec_altmode_update_active(9)
π typec_altmode_update_active(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes that's the manual name, we're not copying the header line, we're folding it in like a cute little intro. Sit down, grab a strawberry π, because this one's short but she matters.
πΈ NAME πΈ
typec_altmode_update_active β the "hey bestie the mode changed" reporter, aka Report Enter/Exit mode π
π¦ SYNOPSIS π¦
void typec_altmode_update_active (struct typec_altmode *adev , bool active );
literally that's it. one function, two args, no drama π
π ARGUMENTS π
adevβ Handle to the alternate mode. this is your lil pointer bestie, the one you're reporting about π«Άactiveβ True when the mode has been entered. so like,true= she's in,false= she's out π (it's abool, no cap)
β DESCRIPTION β
okay so here's the vibe: if a partner or cable plug executes the Enter/Exit Mode command successfully, the drivers use this routine to report the updated state of the mode.
that's the whole thing. no cap. the mode went in or the mode came out, and this function is how you tell everybody π₯ it's giving "group chat announcement energy" β the driver just witnessed something iconic and this is the function it calls to spill π§
lowkey important: the docs say "successfully" for a reason β somebody actually ran the command and it worked, and now you're reporting it. don't be out here reporting vibes that never happened π
π SEE ALSO π
okay this list is long long, and the source file it lives in is Kernel file ./drivers/usb/typec/class.c π¦ β here's the whole squad, every single one, no skips:
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_port_register_cable_ops(9)typec_register_port(9)typec_unregister_port(9)
like I said β the whole squad π main character energy from start to finish.
okay and that's the page!! mwah π sign-off time: this lil beauty lives under ./drivers/usb/typec and she's dated October 2026 β go forth, report your modes, slay β¨ππ
π¦ 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