STRUCT CORESIGHT_CONNECTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the page for struct coresight_connection(9). The name is literally struct coresight_connection β€” representation of a single connection. That's the whole vibe: one connection, fully represented. no cap. 🫢

✨ SYNOPSIS ✨

Here's the struct in all its glory β€” fields exactly as they are, no editorial remix:

struct coresight_connection {
    int src_port;
    int dest_port;
    struct fwnode_handle *dest_fwnode;
    struct coresight_device *dest_dev;
    struct coresight_sysfs_link *link;
    struct coresight_device *src_dev;
    struct fwnode_handle *filter_src_fwnode;
    struct coresight_device *filter_src_dev;
    int src_refcnt;
    int dest_refcnt;
};

πŸ’… Members πŸ’…

  • src_port β€” a connection's output port number. iconic little number. ✨
  • dest_port β€” the destination's input port number that src_port is connected to. iykyk. πŸ”₯
  • dest_fwnode β€” the destination component's fwnode handle. πŸŽ€
  • dest_dev β€” a coresight_device representation of the component. slay. πŸ‘‘
  • link β€” representation of the connection as a sysfs link. cute. πŸ¦‹
  • filter_src_fwnode β€” the filter source component's fwnode handle. πŸ’œ
  • filter_src_dev β€” a coresight_device representation of the component that β€” and that's where the original line ends, bestie. No cap, it just stops. 😭

src_dev, src_refcnt, and dest_refcnt are in the struct up top, but this Members section doesn't give them their own one-liners β€” and I'm not inventing lore. πŸ’€

🌸 Description 🌸

okay so the full connection structure looks like this, where in_conns store references to same connection as the source device's out_conns. Here's the exact diagram, untouched:

       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚ coresight_device                    coresight_connection          β”‚
       β”‚ -----------------------------       ----------------------------- β”‚
       β”‚                                                                   β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       |                             |   |                    dest_dev*|<--
       |pdata->out_conns[nr_outconns]|<->|src_dev*                     |   | |
       |   |                             |   | |

       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚     coresight_device                   β”‚
       β”‚     ------------------------------     β”‚
       β”‚                                        β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       |  pdata->in_conns[nr_in_conns]|<-- |                             |

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux/coresight.h. The whole friend group is:

  • union coresight_dev_subtype(9)
  • struct coresight_platform_data(9)
  • struct csdev_access(9)
  • struct coresight_desc(9)
  • struct coresight_sysfs_link(9)
  • struct coresight_device(9)
  • struct coresight_path(9)
  • struct coresight_ops_sink(9)
  • struct coresight_ops_link(9)
  • struct coresight_ops_source(9)
  • struct coresight_ops_helper(9)
  • struct coresight_ops_panic(9)

source/version: ./include/linux Β· date: October 2026 β€” mwah, that's the whole page, bestie. πŸ’‹πŸ’–

πŸ“¦ where this page comes from