amdgpu_ttm_tt_get_userptr(9)
π amdgpu_ttm_tt_get_userptr(9) π
okay bestie, welcome to the Kernel API Manual β todayβs main character is amdgpu_ttm_tt_get_userptr(9) and itβs literally giving βtiny function, big userptr energyβ β¨. No cap, this one is all about returning the userptr GTT ttm_tt for the current task. Letβs get into it π
.
β¨ NAME β¨
amdgpu_ttm_tt_get_userptr β Return the userptr GTT ttm_tt for the current task π
πΈ SYNOPSIS πΈ
int amdgpu_ttm_tt_get_userptr (const struct ttm_buffer_object *tbo ,
uint64_t *user_addr );
π¦ ARGUMENTS π¦
tboβ thettm_buffer_objectthat contains the userptr. Thatβs the input bestie, the object holding the userptr vibe π«Ά.user_addrβ the returned value. Literally the value that gets returned, no extra lore π.
π₯ SEE ALSO π₯
okay so the kernel file is ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c β thatβs home base π . And hereβs the whole squad of related functions, all linked and iconic π:
amdgpu_evict_flags(9)amdgpu_ttm_map_buffer(9)amdgpu_ttm_copy_mem_to_mem(9)amdgpu_res_cpu_visible(9)amdgpu_ttm_domain_start(9)amdgpu_ttm_mmio_remap_alloc_sgt(9)amdgpu_ttm_tt_create(9)amdgpu_ttm_tt_set_userptr(9)amdgpu_ttm_tt_pde_flags(9)amdgpu_ttm_tt_pte_flags(9)amdgpu_ttm_access_memory(9)amdgpu_ttm_training_reserve_vram_fini(9)amdgpu_ttm_alloc_mmio_remap_bo(9)amdgpu_ttm_free_mmio_remap_bo(9)amdgpu_ttm_enable_buffer_funcs(9)amdgpu_ttm_disable_buffer_funcs(9)amdgpu_ttm_clear_buffer(9)amdgpu_ttm_evict_resources(9)
mwah π thatβs the page! It lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and the manual name on the footer is amdgpu_ttm_tt_get_userptr(9). Bye bestie, go slay those userptrs π«Άβ¨
π¦ 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