amdgpu_gart_unbind(9)
π amdgpu_gart_unbind(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual, and today's main character is amdgpu_gart_unbind(9) β¨ she's a void, she's a function, and she's here to evict some pages from the GART. let's get into it π«Ά
β¨ NAME β¨
amdgpu_gart_unbind β unbind pages from the gart page table π
lowkey the whole point. she unbinds. that's the vibe check and she passed it π
πΈ SYNOPSIS πΈ
void amdgpu_gart_unbind (struct amdgpu_device *adev , uint64_t offset ,
int pages );
no return value, no drama, just vibes π₯ (well β mostly no drama. read the DESCRIPTION, iykyk π)
π¦ ARGUMENTS π¦
adevβ amdgpu_device pointer π like, the whole GPU device struct, the main character of the entire file tbhoffsetβ offset into the GPU's gart aperture π this is where you're pointing, fr frpagesβ number of pages to unbind β not a suggestion, the actual count, be so for real with this number
π DESCRIPTION π
okay so here's the lore: amdgpu_gart_unbind unbinds the requested pages from the gart page table and replaces them with the dummy page (all asics). yes bestie, all of them β every single asic, no exceptions, we love an inclusive icon π
then the return situation is genuinely sending me: it returns 0 for success, -EINVAL for failure β except the function is declared void π so yeah, that's just what the page says, we do not question the ancestors, we report the facts periodt π
ngl the void-vs-return-value thing is a little cursed, but it's literally in the original docs so we're keeping it word for word, no cap π
π SEE ALSO π
the whole friend group π«Ά start with the kernel file itself:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
and then the extended crew, in order, all of them, no one left out π:
amdgpu_gart_dummy_page_init(9)amdgpu_gart_dummy_page_fini(9)amdgpu_gart_table_ram_alloc(9)amdgpu_gart_table_ram_free(9)amdgpu_gart_table_vram_alloc(9)amdgpu_gart_table_vram_free(9)amdgpu_gart_map(9)amdgpu_gart_map_vram_range(9)amdgpu_gart_map_gfx9_mqd(9)amdgpu_gart_bind(9)amdgpu_gart_invalidate_tlb(9)amdgpu_gart_init(9)
like yes, amdgpu_gart_bind(9) is right there and she's the literal opposite of this one β they're giving sibling energy, obsessed π§
and that's the page bestie!! πΈ this little gem lives in ./drivers/gpu/drm/amd/amdgpu, and this edition is the October 2026 one β go off, you ate, mwah ππ
π¦ 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