amdgpu_dma_buf_pin(9)
π amdgpu_dma_buf_pin(9) π
okay so bestie, we're in the Kernel API Manual today and this one is literally the pin implementation for &dma_buf_ops.pin. yes THAT pin. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
amdgpu_dma_buf_pin β the &dma_buf_ops.pin implementation. that's it, that's the whole identity, and honestly? iconic. π
πΈ SYNOPSIS πΈ
int amdgpu_dma_buf_pin (struct dma_buf_attachment *attach );
like, it takes one thing and it returns an int, we love a simple signature no cap π
π ARGUMENTS π
attachβ the attachment to pin down. that's your girl right there, the one getting pinned π¦
π« DESCRIPTION π«
okay so here's the tea: this pins the BO that's backing the DMA-buf so it can't move any more. no more sliding around, no more relocating, she is STAYING PUT. periodt. π₯
like the whole vibe is "freeze, bestie" and the BO just has to accept it β¨
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c(go read it, iykyk π§) PRIME Buffer Sharing(9)dma_buf_attach_adev(9)amdgpu_dma_buf_attach(9)amdgpu_dma_buf_detach(9)amdgpu_dma_buf_unpin(9)amdgpu_dma_buf_map(9)amdgpu_dma_buf_unmap(9)amdgpu_dma_buf_begin_cpu_access(9)amdgpu_gem_prime_export(9)amdgpu_dma_buf_create_obj(9)amdgpu_dma_buf_move_notify(9)amdgpu_gem_prime_import(9)amdgpu_dmabuf_is_xgmi_accessible(9)
like the whole friend group showed up, we love a full roster π
and that's the page!! mwah π this little beauty lives under ./drivers/gpu/drm/amd/amdgpu and the version/date on it is October 2026 β so go forth, pin ur BOs, stay slay, and remember: she can't move any more. bye bestie ππβ¨
π¦ 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