amdgpu_bo_set_metadata(9)
π amdgpu_bo_set_metadata β set metadata
okay so bestie, welcome to the kernel API manual for amdgpu_bo_set_metadata(9) β yes that's the whole title, and yes it's giving "short but iconic." She's a tiny function with a big job and I'm obsessed. Let's get into it π
β¨ SYNOPSIS β¨
int amdgpu_bo_set_metadata (struct amdgpu_bo *bo , void *metadata , u32
metadata_size , uint64_t flags );
literally the whole entire signature, character for character, no cap π
πΈ ARGUMENTS πΈ
boβ theamdgpu_bobuffer object. the main character, the one we're decorating π«Άmetadataβ the new metadata. fresh out the box β¨metadata_sizeβ size of the new metadata. yes she comes with a size, we measure πflagsβ flags of the new metadata. the little vibe settings π©
π¦ DESCRIPTION π¦
So what she does: sets the buffer object's metadata, its size, and its flags. all three, in one lil call π
And where does she live in the wild? She's used via GEM ioctl. that's the whole route, iykyk π
β RETURN β
0for success π- or a negative error code on failure π (she tried her best)
π₯ SEE ALSO π₯
okay this part is a whole friend group, strap in β somebody's gotta know everybody:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
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_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_gpu_offset(9)amdgpu_bo_fb_aper_addr(9)amdgpu_bo_gpu_offset_no_check(9)amdgpu_bo_mem_stats_placement(9)amdgpu_bo_get_preferred_domain(9)amdgpu_bo_print_info(9)
like I said. the whole group chat. also note amdgpu_bo_get_metadata(9) is right there β that's her sister, she reads what this one writes π§
pro tip from me to you: this page lives in ./drivers/gpu/drm/amd/amdgpu and the version stamp says October 2026, so if you're reading this from the future, hi bestie ππ
and that's the page!! mwah, go set some metadata, you absolute icon ππ
π¦ 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