interconnect_fn(9)
π interconnect_fn(9) β a Kernel API Manual moment
okay bestie, welcome to interconnect_fn(9) from the Kernel API Manual, and honestly? she's a little function with a big job. Let's get into it π«Ά
β¨ NAME β¨
interconnect_fn β the callback function that figures out whether two things are connected by a fast interconnect π₯
π¦ SYNOPSIS π¦
bool interconnect_fn (struct drm_pagemap_peer *peer1 , struct
drm_pagemap_peer *peer2 );
π ARGUMENTS π
peer1β the first endpoint. one half of our lil duo πpeer2β the second endpoint. the other half π«Ά
πΈ DESCRIPTION πΈ
So here's the vibe: the function returns true iff peer1 and peer2 have a fast interconnect. iykyk β¨
but wait β heads up, bestie: this is symmetrical. the function has no notion of client and provider, which may not be sufficient in some cases π. like, it literally does not care who's who, it just answers the question.
and there's a reason for that, okay? because the callback is intended to guide in providing common pagemap owners, so the notion of a common owner to indicate fast interconnects would then have to change as well. that's the whole tradeoff, and it's iconic of them to be upfront about it π
π RETURN π
true iff peer1 and peer2 have a fast interconnect. otherwise false. that's it, that's the whole answer, no cap π
π SEE ALSO π
the whole friend group shows up here, so let's give them their moment:
- Kernel file
./drivers/gpu/drm/drm_pagemap_util.c struct drm_pagemap_cache(9)struct drm_pagemap_shrinker(9)drm_pagemap_cache_create_devm(9)Cache lookup(9)drm_pagemap_cache_lock_lookup(9)drm_pagemap_cache_unlock_lookup(9)drm_pagemap_get_from_cache(9)drm_pagemap_cache_set_pagemap(9)drm_pagemap_get_from_cache_if_active(9)drm_pagemap_shrinker_might_lock(9)drm_pagemap_shrinker_add(9)drm_pagemap_shrinker_create_devm(9)struct drm_pagemap_owner(9)drm_pagemap_release_owner(9)drm_pagemap_acquire_owner(9)
β sign-off β
this page lives in ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual β interconnect_fn(9), periodt π go read the rest of the pagemap girlies, they ate πβ¨
π¦ 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