amdgpu_bo_gpu_offset(9)
π amdgpu_bo_gpu_offset β bestie, it's giving offset
okay so this is a page from the Kernel API Manual (the amdgpu_bo_gpu_offset(9) one, mwah), and honestly? it's a tiny little function that just tells you where your buffer object lives on the GPU. short queen. iconic behavior. let's get into it β¨
πΈ SYNOPSIS πΈ
u64 amdgpu_bo_gpu_offset (struct amdgpu_bo *bo );
like literally that's it. she takes one thing and hands you back a u64. no drama, no cap π
π ARGUMENTS π
boβ the amdgpu object you're asking about, aka the thing whose offset we're querying. you give her the bo, she tells you where it's at. that's the whole vibe π¦
β οΈ NOTE β οΈ (read this one bestie, fr fr)
when you call this, the object should either be pinned or be reserved. like, pick one. don't just roll up unprepared π
and ngl, the original page literally says it might be useful to add a check for this for debugging β so that's a real suggestion from the source, not me making stuff up. noted, and honestly? lowkey good advice π«Ά
π RETURN π
the current GPU offset of the object. that's it, that's the tea β β the offset, right now, as it stands π
π₯ SEE ALSO π₯
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
and now the whole friend group, in order, no skips, no cuts β every single one:
amdgpu_object(9)amdgpu_bo_is_amdgpu_bo(9)amdgpu_bo_placement_from_domain(9)amdgpu_bo_create_reserved(9)amdgpu_bo_create_kernel(9)amdgpu_bo_create_isp_user(9)amdgpu_bo_create_kernel_at(9)amdgpu_bo_free_kernel(9)amdgpu_bo_free_isp_user(9)amdgpu_bo_create(9)amdgpu_bo_create_user(9)amdgpu_bo_create_vm(9)amdgpu_bo_kmap(9)amdgpu_bo_kptr(9)amdgpu_bo_kunmap(9)amdgpu_bo_ref(9)amdgpu_bo_unref(9)amdgpu_bo_pin(9)amdgpu_bo_unpin(9)amdgpu_bo_init(9)amdgpu_bo_fini(9)amdgpu_bo_set_tiling_flags(9)amdgpu_bo_get_tiling_flags(9)amdgpu_bo_set_metadata(9)amdgpu_bo_get_metadata(9)amdgpu_bo_move_notify(9)amdgpu_bo_release_notify(9)amdgpu_bo_fault_reserve_notify(9)amdgpu_bo_fence(9)amdgpu_bo_sync_wait_resv(9)amdgpu_bo_sync_wait(9)amdgpu_bo_fb_aper_addr(9)amdgpu_bo_gpu_offset_no_check(9)β yes, the no-check version, she exists πamdgpu_bo_mem_stats_placement(9)amdgpu_bo_get_preferred_domain(9)amdgpu_bo_print_info(9)
like?? the whole squad showed up. main character energy from every single one π
mwah π that's the page! it lives in ./drivers/gpu/drm/amd/amdgpu and the version/date stamp on this one is October 2026 β so mark your calendar bestie, she said see you then πβ¨
π¦ 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