STRUCT TB_PATH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct tb_path(9) πŸ¦‹

Okay so this is the Kernel API Manual page for struct tb_path(9) β€” welcome to the group chat, bestie πŸ’…

πŸ’– NAME πŸ’–

struct tb_path β€” a unidirectional path between two ports. That's the whole vibe: one-way path, two ports, iconic.

✨ SYNOPSIS ✨

struct tb_path {
    struct tb *tb;
    const char *name;
    enum tb_path_port ingress_shared_buffer;
    enum tb_path_port egress_shared_buffer;
    enum tb_path_port ingress_fc_enable;
    enum tb_path_port egress_fc_enable;
    unsigned int priority:3;
    int weight:4;
    bool drop_packages;
    bool activated;
    bool clear_fc;
    int path_length;
    bool alloc_hopid;
    struct tb_path_hop hops[];
};

🫢 Members 🫢

Meet the fields, bestie β€” every single one is here, no skipping:

  • tb β€” pointer to the domain structure 🫢
  • name β€” name of the path, used for debugging πŸ‘€
  • ingress_shared_buffer β€” shared buffering used for ingress ports on the path ✨
  • egress_shared_buffer β€” shared buffering used for egress ports on the path ✨
  • ingress_fc_enable β€” flow control for ingress ports on the path πŸ’«
  • egress_fc_enable β€” flow control for egress ports on the path πŸ’«
  • priority β€” priority group if the path β€” the page says if, and we're keeping it, periodt πŸ’…
  • weight β€” weight of the path inside the priority group β€” very main character energy πŸ‘‘
  • drop_packages β€” drop packages from queue tail or head β€” yes, packages is the word on the page, no cap 🀭
  • activated β€” is the path active? a yes/no vibe πŸ’–
  • clear_fc β€” clear all flow control from the path config space entries when deactivating this path 🧚
  • path_length β€” how many hops the path uses πŸŽ€
  • alloc_hopid β€” does this path consume port HopID? πŸ¦‹
  • hops β€” path hops 🌸

🌸 Description 🌸

A path consists of a number of hops (see struct tb_path_hop), bestie. To establish a PCIe tunnel, two paths have to be created between the two PCIe ports β€” that's the rule, periodt πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

Go read these, iykyk β€” starting with the kernel file:


Sign-off bestie: source/version ./drivers/thunderbolt, date October 2026, title struct tb_path(9) β€” mwah! πŸ’‹βœ¨

πŸ“¦ where this page comes from