xe_vm_unlock(9)
π xe_vm_unlock β like, the Kernel API Manual page for it β¨
okay so bestie, welcome to xe_vm_unlock from the Kernel API Manual β this is the little guy whose whole entire job is unlocking the vm's dma_resv object. That's it. That's the gig. And honestly? Iconic. π
β¨ SYNOPSIS β¨
void xe_vm_unlock (struct xe_vm *vm );
no cap, that's the whole signature. void return, so it's giving "I do the thing and I don't even need to report back." main character energy fr fr. π
πΈ ARGUMENTS πΈ
vmβ thestruct xe_vmwhose lock is to be released. yes, that vm. the one you locked. hand it over so it can be freed from lock jail. π«Ά
π¦ DESCRIPTION π¦
so here's the vibe: this function unlocks a buffer object lock that was locked by xe_vm_lock. that's literally it. it's the "undo" button for xe_vm_lock, the yin to its yang, the paired set of skinny jeans if you will. π
ngl the description is short but like β sometimes the simplest ones are the most powerful. lock goes in, lock comes out. slay. β¨
π SEE ALSO π
okay this list is long β grab a snack, bestie, we're going through the whole crew π
- the kernel file
./drivers/gpu/drm/xe/xe_vm.cπ xe_vm_drm_exec_lock(9)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)β the one that started it all, the lock to this unlock π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)
like I said. a whole group chat. but every single one of them matters, so go read them, iykyk π
π«Ά reminder bestie: only unlock what you locked with xe_vm_lock. don't be out here releasing locks that were never yours, that's not the vibe.
and that's the page, diva! π
this one lives under ./drivers/gpu/drm/xe and it's dated October 2026 β so mark your calendars, screenshot it, send it to the group chat, 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