create_dmamap_sg_bo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… create_dmamap_sg_bo β€” it's a Kernel API Manual moment, bestie

okay so welcome to the create_dmamap_sg_bo(9) page, a certified kernel-API classic, and honestly? she's lowkey iconic for what she does. let's get into it 🫢


✨ NAME ✨

create_dmamap_sg_bo β€” literally creates a amdgpu_bo object so it can reflect all the info about a USERPTR or DOOREBELL or MMIO BO. that's the whole vibe. no cap.


🌸 SYNOPSIS 🌸

int create_dmamap_sg_bo (struct amdgpu_device *adev , struct kgd_mem
*mem , struct amdgpu_bo **bo_out );

like, look at her signature. so clean. so demure. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” the device for which the dmamap BO is being created. it's giving "who is this for" energy, and the answer is this device πŸ’–
  • mem β€” the BO of the peer device that's getting DMA mapped. she's the main character supplying the parameters used to build the dmamap BO 🌟
  • bo_out β€” the output parameter, updated with the handle of the dmamap BO. yes bestie, she's an out-param, she comes back changed ✨

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file herself, no cap:

./drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

and then the whole friend group β€” go say hi, they all ate:


and that's the page!! πŸŽ€ quick little sign-off for the receipts: this one lives under ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and the whole thing is filed under create_dmamap_sg_bo(9). slay, periodt, go read the source πŸ’œπŸŒˆ

πŸ“¦ where this page comes from