dma_buf_attach_adev(9)
π NAME π
Bestie, welcome to the dma_buf_attach_adev(9) page from the Kernel API Manual π«Ά This one is literally the helper to get adev of an attachment β tiny little bridge energy, and we love that for us. β¨
πΈ SYNOPSIS πΈ
struct amdgpu_device * dma_buf_attach_adev (struct dma_buf_attachment
*attach );
π ARGUMENTS π
attachβ the attachment, bestie. Thatβs the thing youβre passing in π
π RETURN π
Returns: A struct amdgpu_device * if the attaching device is an amdgpu device or partition, NULL otherwise. So yes: amdgpu device or partition β you get that struct amdgpu_device *; anything else β NULL. Periodt. π
π¦ SEE ALSO π¦
Okay, the link-up section, and it is stacked:
- Kernel file:
./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c PRIME Buffer Sharing(9)amdgpu_dma_buf_attach(9)amdgpu_dma_buf_detach(9)amdgpu_dma_buf_pin(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)
Okay bestie, thatβs the whole dma_buf_attach_adev(9) page π it lives in ./drivers/gpu/drm/amd/amdgpu, and itβs dated October 2026. mwah, go be iconic with your attachments πβ¨
π¦ 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