cayman_dma_vm_set_pages(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… cayman_dma_vm_set_pages (9) ๐Ÿ’…

okay so bestie, welcome to the Kernel API Manual โœจ this one's all about cayman_dma_vm_set_pages, and honestly? she's a whole mood. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

cayman_dma_vm_set_pages โ€” updating the page tables using the DMA, no cap ๐Ÿ’–


โœจ SYNOPSIS โœจ

void cayman_dma_vm_set_pages (struct radeon_device *rdev , struct
radeon_ib *ib , uint64_t pe , uint64_t addr , unsigned count , uint32_t
incr , uint32_t flags );

like, that's the whole vibe. void return, seven args, she's booked and busy ๐Ÿ‘‘


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • rdev โ€” the radeon_device pointer, i.e. ur main character struct ๐Ÿ’…
  • ib โ€” the indirect buffer we're filling with commands, she's literally the canvas ๐ŸŽจ
  • pe โ€” addr of the page entry (yes, the page entry, keep up bestie)
  • addr โ€” the dst addr that gets written into pe ๐Ÿ“
  • count โ€” how many page entries we're updating, gotta know the headcount ๐Ÿงฎ
  • incr โ€” bump the next addr by incr bytes, lil step-by-step energy ๐ŸŒˆ
  • flags โ€” the hw access flags, iykyk ๐Ÿ”ฅ

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Update the page tables using the DMA (cayman/TN). that's it, that's the whole thing โ€” she updates page tables, she uses the DMA, she slays ๐Ÿ’€โœจ


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

Kernel file ./drivers/gpu/drm/radeon/ni_dma.c and her whole friend group:


and that's the tea, bestie ๐Ÿ“ this lil gem lives in ./drivers/gpu/drm/radeon, dated October 2026 โ€” go off, October 2026, you ate ๐ŸŽ€โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from