tb_dp_port_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ tb_dp_port_enable(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one is called tb_dp_port_enable β€” yes the (9) is part of the name, we don't question it, we just vibe.


🌸 NAME 🌸

tb_dp_port_enable β€” it turns the DP paths of a port on or off. that's it. that's the whole job. iconic honestly 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int tb_dp_port_enable (struct tb_port *port , bool enable );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” the DP IN/OUT port in question. like, the actual port. the one we're doing stuff to πŸ’–
  • enable β€” a bool that says enable or disable the DP path. true = slay it's on, false = and it's off πŸ’€

⭐ DESCRIPTION ⭐

so here's the tea: once the Hop IDs have been programmed, you can enable or disable DP paths by calling this function. that's the order of operations, no cap β€” Hop IDs first, then this. don't skip steps bestie, the vibes will not recover πŸ™ˆ


🌈 RETURN 🌈

  • 0 on success πŸ’šβœ¨
  • negative errno otherwise 😭

πŸ‘‘ SEE ALSO πŸ‘‘

and now the part where we shout out literally everyone. grab a snack, this is a long list πŸ“

Kernel file ./drivers/thunderbolt/switch.c

and that's the page!! 🧚 this little beauty lives in ./drivers/thunderbolt and it's dated October 2026 β€” yes, the future, because kernel docs stay ahead of us πŸ’œ go enable some DP paths bestie, you got this πŸ”₯

πŸ“¦ where this page comes from