amdgpu_vm_pte_fragment(9)
π 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β thestruct amdgpu_vm_update_paramssituation. the manpage is like "seeamdgpu_vm_update_paramsdefinition" 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. thehwones specifically π₯fragβ the resulting fragment size gets written here. it's anunsigned int *, so she's pointing at your answer πfrag_endβ end of this fragment, handed back to you as auint64_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:
amdgpu_vm_pt_level_shift(9)amdgpu_vm_pt_num_entries(9)amdgpu_vm_pt_entries_mask(9)amdgpu_vm_pt_size(9)amdgpu_vm_pt_parent(9)amdgpu_vm_pt_start(9)amdgpu_vm_pt_descendant(9)amdgpu_vm_pt_sibling(9)amdgpu_vm_pt_ancestor(9)amdgpu_vm_pt_next(9)amdgpu_vm_pt_first_dfs(9)amdgpu_vm_pt_continue_dfs(9)amdgpu_vm_pt_next_dfs(9)amdgpu_vm_pt_clear(9)amdgpu_vm_pt_create(9)amdgpu_vm_pt_alloc(9)amdgpu_vm_pt_free(9)amdgpu_vm_pt_free_list(9)amdgpu_vm_pt_add_list(9)amdgpu_vm_pt_free_root(9)amdgpu_vm_pde_update(9)amdgpu_vm_pte_update_noretry_flags(9)amdgpu_vm_ptes_update(9)amdgpu_vm_pt_map_tables(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms