dma_buf_attach_adev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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