sdma_v4_0_vm_write_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v4_0_vm_write_pte(9) β€” like, the Kernel API Manual page you actually wanna read ✨

okay so bestie, welcome to the group chat, this is a page straight out of the Kernel API Manual and it's all about one very specific little function. pull up a chair πŸŽ€


✨ NAME ✨

sdma_v4_0_vm_write_pte β€” it updates PTEs by writing them manually. that's the whole vibe. no cap.


🌸 SYNOPSIS 🌸

void sdma_v4_0_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe ,
uint64_t value , unsigned count , uint32_t incr );

she takes five args and returns literally nothing (void), she's just here to do the work πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ib β€” the indirect buffer you're filling with commands. this is her canvas, her stage, her main character moment.
  • pe β€” the addr of the page entry. yes, addr, we're being casual about it.
  • value β€” the dst addr to write into pe.
  • count β€” how many page entries we're updating. the more the merrier, lowkey.
  • incr β€” increase the next addr by incr bytes. so she steps forward by incr each time, iconic behavior honestly.

πŸ”₯ DESCRIPTION πŸ”₯

Update PTEs by writing them manually using sDMA (VEGA10) πŸ’€ that's it, that's the whole description. short and slay. she's not gonna over-explain herself, she's got page tables to write.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file she lives in, for when you wanna go read the source like the academic icon you are:

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

and her whole friend group, fr fr β€” every single one of these:


and that's the tea πŸ“ this little beauty hangs out in ./drivers/gpu/drm/amd/amdgpu, the page is dated October 2026, and it's filed under sdma_v4_0_vm_write_pte(9) πŸ’œ go forth and write those PTEs manually, bestie, i believe in you 🫢✨

πŸ“¦ where this page comes from