sdma_v4_0_vm_set_pte_pde(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v4_0_vm_set_pte_pde(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, we're in the Kernel API Manual today and this one's a little baddie from the AMDGPU world. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

sdma_v4_0_vm_set_pte_pde β€” the girlies who update the page tables using sDMA. that's it. that's the whole job. slay.


🌸 SYNOPSIS 🌸

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

no cap, that's the whole signature. she takes six arguments and returns literally nothing (void, iconic, unbothered, moisturised ✨). copy it exactly, don't get creative with the types, uint64_t is not a suggestion.


πŸ¦‹ ARGUMENTS πŸ¦‹

okay so every single one of these matters, let's go one by one πŸ’–

  • ib β€” indirect buffer to fill with commands. this is the lil container she's gonna stuff full of commands, main character energy fr.
  • pe β€” addr of the page entry. the spot we're targeting, iykyk.
  • addr β€” dst addr to write into pe. that's the destination address going into the page entry.
  • count β€” number of page entries to update. how many we doing? this many. periodt.
  • incr β€” increase next addr by incr bytes. so after each one, bump the address by this much. the way that math just works 😌.
  • flags β€” access flags. the vibes/permissions, basically. tell her how to access it.

πŸ”₯ DESCRIPTION πŸ”₯

Update the page tables using sDMA (VEGA10). that's the whole description and honestly? she ate. no extra lore, no side quests, just page table updates via sDMA on VEGA10, and we respect the brevity 🫢

lowkey important: this is a void function. she does the thing and dips. don't go looking for a return value, you will not find one πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, in order, no one left out πŸ‘‘

literally the entire sdma_v4_0 cinematic universe πŸ’œ go read the others if you want the full lore.


and that's the page bestie!! 🧚 from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” mwah, love that for us. now go update those page tables with sDMA and have the best day ever πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from