tb_port_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_port_disable β€” bestie edition

okay so this is a page from the Kernel API Manual, and it's all about tb_port_disable(9). sit down, grab a strawberry drink πŸ“, we're learning kernel internals together.


✨ NAME ✨

tb_port_disable β€” literally just disable the lane adapter. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

int tb_port_disable (struct tb_port *port );

it's giving very simple signature energy ngl ✨ returns an int, takes one pointer. no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” the port you wanna disable. and yes bestie, it can be NULL πŸ™ˆ like the function is chill about it.

πŸ’– DESCRIPTION πŸ’–

so this one is used for lane 0 and 1 adapters to disable them. that's the entire job. main character energy but make it niche πŸ’…

lowkey obsessed with how short this description is. no notes. iconic behavior.

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” slay, it worked ✨
  • negative errno β€” not slay 😭 something went wrong, and it tells you with a negative errno value.

🌈 SEE ALSO 🌈

first things first, the source lives in the kernel file ./drivers/thunderbolt/switch.c β€” that's the home base 🏠

and then the whole friend group, fr fr:

like, that's a whole group chat right there 🫢 iykyk.


and that's the page!! tysm for reading πŸ’œ this one came from ./drivers/thunderbolt, dated October 2026 β€” so yeah, very demure, very future-dated. periodt. πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from