xe_vm_drm_exec_lock(9)
π xe_vm_drm_exec_lock(9) β the kernel API manual, but make it cute
okay so bestie, welcome to xe_vm_drm_exec_lock from the Kernel API Manual π this one's a little helper function and honestly she's giving "does one thing and does it well" energy π
β¨ NAME β¨
xe_vm_drm_exec_lock β locks the vm's resv using a drm_exec transaction π
πΈ SYNOPSIS πΈ
int xe_vm_drm_exec_lock (struct xe_vm *vm , struct drm_exec *exec );
π¦ ARGUMENTS π¦
vmβ the vm whose resv we're locking. that's the whole vibe. π«Άexecβ thedrm_exectransaction. she's the one running the show π
β DESCRIPTION β
so basically this is a helper that locks the vm's resv as part of a drm_exec transaction β¨ that's it, that's the function. no cap, she's short and sweet π
π₯ RETURN π₯
returns 0 on success π and if it goes sideways? peep drm_exec_lock_obj for the error codes π
π SEE ALSO π
kernel file: ./drivers/gpu/drm/xe/xe_vm.c π
and the whole friend group, in the order they were introduced β not me listing every single one, but you gotta have the full squad π:
xe_vm_remove_compute_exec_queue(9)xe_vm_kill(9)xe_vm_validate_rebind(9)xe_vm_bump_lru(9)xe_vm_resume_rebind_worker(9)xe_vm_add_fault_entry_pf(9)xe_vm_range_rebind(9)xe_vm_range_unbind(9)xe_vma_mem_attr_copy(9)xe_vm_lock_vma(9)xe_vm_create_scratch(9)xe_vm_find_vma_by_addr(9)xe_vma_has_default_mem_attrs(9)struct xe_vma_lock_and_validate_flags(9)xe_vm_bind_kernel_bo(9)xe_vm_lock(9)xe_vm_unlock(9)xe_vm_invalidate_vma_submit(9)xe_vm_invalidate_vma(9)xe_vma_need_vram_for_atomic(9)xe_vm_alloc_madvise_vma(9)xe_vm_find_cpu_addr_mirror_vma_range(9)xe_vm_alloc_cpu_addr_mirror_vma(9)xe_vm_add_exec_queue(9)xe_vm_remove_exec_queue(9)
π reminder bestie: yesss this is a function page, it's not that deep, but locking correctness IS that deep. reader beware, respect the resv.
and that's the page!! π§ this masterpiece lives in ./drivers/gpu/drm/xe π and it's dated October 2026 β slay, see you in the next release, mwah π«Άπ
π¦ 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