drm_pagemap_acquire_owner(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_pagemap_acquire_owner(9) β€” like, the interconnect group join era

okay bestie, welcome to the kernel API manual page for drm_pagemap_acquire_owner(9) β€” yes that's the whole title, she's long, she's iconic, we love her πŸ’–


✨ NAME ✨

drm_pagemap_acquire_owner β€” join an interconnect group 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_pagemap_acquire_owner (struct drm_pagemap_peer *peer , struct
drm_pagemap_owner_list *owner_list , interconnect_fn has_interconnect );

🌸 ARGUMENTS 🌸

  • peer β€” a struct drm_pagemap_peer that's keeping track of the device interconnect, she's got the receipts πŸ“‹
  • owner_list β€” pointer to the owner_list, which keeps track of literally all the interconnects
  • has_interconnect β€” the callback function that figures out whether two peers have a fast local interconnect. the vibe checker, basically ⚑

πŸ’œ DESCRIPTION πŸ’œ

so what happens is: drm_pagemap_acquire_owner repeatedly calls has_interconnect for peer and the other peers chilling on owner_list, to figure out the set of peers that peer has a fast interconnect with. ngl that set is gonna share a common struct drm_pagemap_owner, and when the call returns successfully, peer::owner points at that struct β€” holding a reference, no cap β€” and peer gets registered in owner_list. slay πŸ’…

and if peer has no fast interconnects to any other peers? then a brand new unique struct drm_pagemap_owner gets allocated just for it πŸŽ€ β€” and that one can totally be shared later with other peers that, at some future point, turn out to have a fast interconnect with peer. main character energy, but make it shareable ✨

🚨 super important bestie: when peer is done participating in an interconnect group, you must call drm_pagemap_release_owner to drop the reference on the struct drm_pagemap_owner. don't leave her hanging 😭

πŸ”₯ RETURN πŸ”₯

0 on success, and a negative error code on failure. that's it, that's the whole thing πŸ’€


🌈 SEE ALSO 🌈


and that's the page, bestie πŸ§šπŸ’– sign-off time: this lil beauty lives over in ./drivers/gpu/drm, dated October 2026, and it's filed under drm_pagemap_acquire_owner(9). obsessed. periodt. πŸ‘‘

πŸ“¦ where this page comes from