sdma_v3_0_vm_set_pte_pde(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v3_0_vm_set_pte_pde πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're fancy here ✨ β€” and today's main character is a lil function called sdma_v3_0_vm_set_pte_pde. it's a mouthful, i know. say it three times fast, i dare you 🫢


✨ NAME ✨

sdma_v3_0_vm_set_pte_pde β€” literally just: update the page tables using sDMA. that's the whole vibe. no cap πŸ’…


🌸 SYNOPSIS 🌸

void sdma_v3_0_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t addr , unsigned count , uint32_t incr , uint64_t flags );

it returns void, so like… don't go looking for a return value, she's not giving you one 😭


πŸŽ€ ARGUMENTS πŸŽ€

okay so every single one of these matters, don't skip:

  • ib β€” the indirect buffer you're filling with commands. this is the canvas, she's the paint πŸ–ŒοΈ
  • pe β€” addr of the page entry. yes, "addr of the page entry", that's the whole description, treasure it πŸ’–
  • addr β€” the dst addr you're writing into pe. destination energy only ✨
  • count β€” how many page entries we're updating. a whole squad, not just one πŸ‘‘
  • incr β€” increase the next addr by incr bytes. lil step-by-step walk through memory πŸšΆβ€β™€οΈ
  • flags β€” access flags. the permission slip, iykyk 🎫

πŸ¦‹ DESCRIPTION πŸ¦‹

update the page tables using sDMA (CIK). that's it, that's the description, and honestly? iconic. short, sweet, does exactly what it says on the tin πŸ”₯


🌈 SEE ALSO 🌈

bestie, there is a whole friend group here, and you should meet all of them:

like, look at that roster. ate and left no crumbs πŸ’€βœ¨


aaaand that's the page!! πŸŽ€ cute lil sign-off time: this beauty lives over in ./drivers/gpu/drm/amd/amdgpu, and it was stamped October 2026 β€” so yeah, she's got a date on her and everything πŸ’– slay, go update some page tables, bestie 🫢🌸

πŸ“¦ where this page comes from