typec_cable_is_active(9)
π¦ typec_cable_is_active β bestie's guide (section 9, kernel API manual)
okay so this is the typec_cable_is_active(9) page, and honestly? it's a short one. a little snack. a single-question quiz about your USB Type-C cable. let's get into it π
β¨ NAME β¨
typec_cable_is_active β check is the USB Type-C cable active or passive
(yes, the original grammar said "check is" and I'm keeping it, it's giving quirky and we love her for it π)
πΈ SYNOPSIS πΈ
int typec_cable_is_active (struct typec_cable *cable );
one function, one argument, returns an int. lowkey elegant. no cap.
π«Ά ARGUMENTS π«Ά
cableβ The USB Type-C Cable. that's it. that's the whole argument. hand her your cable struct and she'll tell you what's up β¨
π DESCRIPTION π
Return 1 if the cable is active or 0 if it's passive.
that's genuinely the entire description, bestie. one sentence. icon behavior. you pass in the cable, she gives you back a 1 (active π
) or a 0 (passive π). no in-between, no maybe, no "it's complicated." a binary vibe check and she ate.
ngl if you're expecting more lore here, there isn't any β this page is short and she knows it. respect the minimalism π₯
π₯ SEE ALSO π₯
okay this is where it gets unhinged. the see-also list is a whole group chat β the kernel file ./drivers/usb/typec/class.c and then every single one of these besties:
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_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. a whole group chat. go say hi to all of them π§
π sign-off π
this lil masterpiece lives in the kernel source tree at ./drivers/usb/typec, dated October 2026, and she's page typec_cable_is_active(9) of the Kernel API Manual. stan her, cite her, and remember: active = 1, passive = 0, periodt ππβ
π¦ 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