typec_altmo..._orientation(9)
π typec_altmode_get_orientation(9) β get cable plug orientation
okay so this is a page from the Kernel API Manual, and honestly? it's a short one, bestie. like, one function, one argument, and then a whole friend group of SEE ALSOs. we love a low-effort icon. β¨
π NAME π
typec_altmode_get_orientation β Get cable plug orientation
fr fr, that's the whole job. it looks at the alternate mode and tells you which way round the cable plug is sitting. no cap.
πΈ SYNOPSIS πΈ
enum typec_orientation typec_altmode_get_orientation (struct
typec_altmode *altmode );
so it hands you back an enum typec_orientation, and it takes exactly one thing. that's it. that's the vibe check. π
π¦ ARGUMENTS π¦
altmodeβ Handle to the alternate mode. yes bestie, the handle, the little pointer-y pass you gotta give it so it knows which alternate mode you're even talking about. π«Ά
π₯ SEE ALSO π₯
the group chat, in order, all of them, no one left on read:
- Kernel file
./include/linux/usb/typec_altmode.hstruct typec_altmode(9) struct typec_altmode_ops(9)struct typec_cable_ops(9)typec_altmode_get_cable_svdm_version(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_mode_selection_start(9)typec_altmode_state_update(9)typec_mode_selection_delete(9)
like, go read those if you want the full lore. iykyk π
ngl this page is short enough to read in one breath, so there's genuinely no excuse not to. periodt. π
and that's the whole thing, bestie β brought to you by ./include/linux/usb and the Kernel API Manual, dated October 2026. slay, go get that orientation. ππ
π¦ 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