kfd_topology...ate_io_links(9)
π NAME π
Okay bestie, this is the page for kfd_topology_update_io_links, from the Kernel API Manual β you might see it filed as kfd_topology...ate_io_links(9). It does exactly what it says on the tin: update IO links after device removal. Slay. β¨
πΈ SYNOPSIS πΈ
void kfd_topology_update_io_links (int proximity_domain );
π ARGUMENTS π
proximity_domainβ the proximity domain value of the dev being removed. Yes, βdevβ like device β keep up π
π¦ DESCRIPTION π¦
So right now, the topology list is arranged in increasing order of proximity domain. That's the setup.
When a device is removed, two things need to be done:
- All the IO links to this device need to be removed. Bye links π
- All nodes after the current device node need to move up once this device node is removed from the topology list. As a result, the proximity domain values for all nodes after the node being deleted reduce by 1. This would also cause the proximity domain values for io links to be updated based on new proximity domain values. The domino effect is real π
π CONTEXT π
The caller must hold write topology_lock. No cap β that's the rule. π₯
π SEE ALSO π
Kernel file ./drivers/gpu/drm/amd/amdkfd/kfd_topology.c β that's the spot, iykyk.
Cute sign-off: this page's source/version is ./drivers/gpu/drm/amd/amdkfd, and it's dated October 2026, still under the Kernel API Manual umbrella. Bye bestie, go update those IO links π
π«Ά
π¦ 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