amdgpu_bo_create_user(9)
π amdgpu_bo_create_user(9)
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes this page is about amdgpu_bo_create_user. it's giving "one tiny function, whole lot of buffer object lore" β¨
πΈ NAME πΈ
amdgpu_bo_create_user β create an &amdgpu_bo_user buffer object π
β¨ SYNOPSIS β¨
int amdgpu_bo_create_user (struct amdgpu_device *adev , struct
amdgpu_bo_param *bp , struct amdgpu_bo_user **ubo_ptr );
like, three args, one int coming back at you. no cap, that's the whole signature π
π¦ ARGUMENTS π¦
adevβ the amdgpu device object. the actual GPU bestie we're doing all this for π«Άbpβ parameters to be used for the buffer object. this is the vibe spec, the whole blueprint honestly πubo_ptrβ pointer to the buffer object pointer. yes, a pointer-to-a-pointer, she's double indirect and she's iconic π
π DESCRIPTION π
Create a BO to be used by user application; π§
that's it, that's the whole thing β the BO is for the user application to use, periodt. (also, tiny detail: the sentence ends with a semicolon in the original and honestly we respect the punctuation commitment π)
π₯ RETURN π₯
0 for success or a negative error code on failure. so like, zero = slay, negative = π. check it, always.
ngl a negative return is your cue to actually handle the error. don't just vibe past it π
π SEE ALSO π
kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c π
the whole friend group, in order, exactly as they appear on the page:
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_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_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)
alright bestie, that's the page π this one ships out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β so like, future-core of it all. go forth and allocate responsibly β¨π
π¦ 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