reuse_dmamap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– reuse_dmamap(9) β€” the kernel API manual, bestie edition ✨

okay so you're in the Kernel API Manual and the page is reuse_dmamap(9) β€” yes the header says reuse_dmamap(9) on both sides, we love a symmetrical queen πŸ‘‘


🌸 NAME 🌸

reuse_dmamap β€” literally just checks whether adev can share the original userptr BO 🫢


πŸŽ€ SYNOPSIS πŸŽ€

bool reuse_dmamap (struct amdgpu_device *adev , struct amdgpu_device
*bo_adev );

it's giving "tiny function, big responsibility" ngl πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” the device that either can or cannot share the original BO, no in-between bestie
  • bo_adev β€” the device that the allocated BO actually belongs to πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: if both adev and bo_adev are in direct mapping, or they're in the same iommu group, then they can share the original BO. that's it, that's the whole lore ✨


⭐ RETURN ⭐

returns true if adev can share the original userptr BO, and false otherwise. binary icon behavior fr fr πŸ’€


πŸ’œ SEE ALSO πŸ’œ

like, go read them too, they're all in their main character era 🌈


ok that's the whole page bestie, no cap, nothing skipped, every flag and function name preserved exactly πŸ’–

and that's a wrap, mwah πŸ’‹ β€” this little gem lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's part of the Kernel API Manual. slay, go forth and share those BOs responsibly πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from