reserve_bo_and_cond_vms(9)
reserve_bo_and_cond_vms(9) π
okay bestie, this one is from the Kernel API Manual and it's lowkey a whole reservation moment: reserve a BO and some VMs conditionally. the way it's giving kernel internals but make it cute? obsessed. π
β¨ NAME β¨
reserve_bo_and_cond_vms β reserve a BO and some VMs conditionally. π¦
πΈ SYNOPSIS πΈ
int reserve_bo_and_cond_vms (struct kgd_mem *mem , struct amdgpu_vm *vm , enum bo_vm_match map_type , struct bo_vm_reservation_context *ctx );
π¦ ARGUMENTS π¦
memβ the KFD BO structure. πvmβ the VM to reserve. If it'sNULL, then all VMs associated with the BO is used. Otherwise, a single VM associated with the BO. π«Άmap_typeβ the mapping status that will be used to filter the VMs. β¨ctxβ the struct that will be used inunreserve_bo_and_vms. π
π DESCRIPTION π
Returns 0 for success, negative for failure. that's it, that's the description β short and iconic, fr fr. π
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.cπ reuse_dmamap(9)amdgpu_amdkfd_reserve_mem_limit(9)create_dmamap_sg_bo(9)amdgpu_amdkfd_remove_all_eviction_fences(9)create_sg_table(9)kfd_mem_dmamap_sg_bo(9)kfd_mem_dmaunmap_sg_bo(9)reserve_bo_and_vm(9)unreserve_bo_and_vms(9)amdgpu_amdkfd_gpuvm_pin_bo(9)amdgpu_amdkfd_gpuvm_unpin_bo(9)amdgpu_amdkfd_map_gtt_bo_to_gart(9)
mwah π β source/version: ./drivers/gpu/drm/amd/amdgpu / Kernel API Manual; page: reserve_bo_and_cond_vms(9); date: October 2026. π«Ά
π¦ 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