typec_mode_selection_start(9)
πΈ typec_mode_selection_start(9) β the one where your Type-C partner picks a vibe πΈ
okay bestie, welcome to the Kernel API Manual β¨ this one's short and sweet and it's literally about kicking off an Alternate Mode selection process. pull up a chair, we're getting into it π«Ά
π NAME π
typec_mode_selection_start β start an alternate mode selection process π
no cap, that's the whole vibe.
β¨ SYNOPSIS β¨
int typec_mode_selection_start (struct typec_partner *partner , const
unsigned int delay , const unsigned int timeout );
that's it, that's the function π three args, returns an int, iconic behaviour.
π¦ ARGUMENTS π¦
partnerβ the handle to the Type-C partner device π like, the actual buddy you're trying to talk to, handshake style.delayβ delay between mode entry/exit attempts, in ms β³ so it's the "chill for a sec between tries" number.timeoutβ timeout for a mode entry attempt, in ms β aka how long one single try gets before we're like "ok moving on".
π DESCRIPTION π
so this function initiates the whole process of attempting to enter an Alternate Mode that's supported by the connected Type-C partner π she's the starter, the main character who gets the ball rolling.
returns 0 on success π₯ or a negative error code on failure π that's it, that's the contract. no surprises, no drama.
π SEE ALSO π
like, go read your other favs too, iykyk π
Kernel file ./include/linux/usb/typec_altmode.h β plus struct typec_altmode(9), struct typec_altmode_ops(9), struct typec_cable_ops(9), typec_altmode_get_cable_svdm_version(9), typec_altmode_get_orientation(9), typec_altmode_get_svdm_version(9), typec_altmode_get_data_role(9), struct typec_altmode_driver(9), typec_altmode_register_driver(9), typec_altmode_unregister_driver(9), typec_altmode_state_update(9), and typec_mode_selection_delete(9) π¦
ok that's the whole page, she's a short queen π if anything here confused you it's a skill issue on us not you, go check SEE ALSO, ily π
and that's a wrap bestie!! π this cutie comes to you from ./include/linux/usb, dated October 2026, and ngl it served exactly what it needed to serve β¨ mwah ππ§ββοΈπΈ
π¦ 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