amdgpu_vm_pte_fragment(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_vm_pte_fragment(9) β€” like, the Kernel API Manual era πŸŽ€

okay bestie, so this one lives in the Kernel API Manual and it's literally called amdgpu_vm_pte_fragment β€” get fragment for PTEs. that's the whole vibe. let's go ✨


✨ SYNOPSIS ✨

void amdgpu_vm_pte_fragment (struct amdgpu_vm_update_params *params ,
uint64_t start , uint64_t end , uint64_t flags , unsigned int *frag ,
uint64_t *frag_end );

no cap, that's the whole signature. it's a void, she returns nothing, she just tells you things through pointers. main character energy πŸ’…


🌸 ARGUMENTS 🌸

  • params β€” the struct amdgpu_vm_update_params situation. the manpage is like "see amdgpu_vm_update_params definition" and honestly? valid. go read it, iykyk 🫢
  • start β€” the first PTE to handle. like, where the party starts πŸŽ‰
  • end β€” the last PTE to handle. where the party ends 😭
  • flags β€” hardware mapping flags, fr fr. the hw ones specifically πŸ”₯
  • frag β€” the resulting fragment size gets written here. it's an unsigned int *, so she's pointing at your answer πŸ‘‘
  • frag_end β€” end of this fragment, handed back to you as a uint64_t *. two outputs, one call, we love a multitasker ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she returns the first possible fragment for the start and end address. that's it. that's the whole description. short, sweet, iconic β€” she ate and left no crumbs πŸ“

like, no notes. the manpage said what it said and dipped πŸ’€

ngl bestie, this is one of those tiny helper functions that just knows things about fragments so the bigger update machinery doesn't have to. respect.

πŸ’– SEE ALSO πŸ’–

okay this is the part where the group chat gets LONG. buckle up 🌈 the kernel file itself lives at:

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

and then the whole extended friend group shows up, in this exact order:

twenty-four besties and not a single one skipped, periodt πŸ‘‘


and that's the page, bestie πŸ’œ this little gem ships out of ./drivers/gpu/drm/amd/amdgpu and it's stamped October 2026 β€” so like, mark your calendar, she's from the future 🧚✨ byeee πŸŽ€

πŸ“¦ where this page comes from