drm_gpuvm_exec_unlock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpuvm_exec_unlock(9) β€” bestie edition

okay so this is drm_gpuvm_exec_unlock, straight out of the Kernel API Manual, and honestly? she's the cleanup queen. the "we're done here, everyone out of the pool" arc we've all been waiting for 🫢


✨ NAME ✨

drm_gpuvm_exec_unlock β€” lock all dma-resv of all assoiciated BOs

(yes that's literally how it's spelled in the source, "assoiciated", I am not touching it, that's canon now πŸ’€)


πŸŽ€ SYNOPSIS πŸŽ€

void drm_gpuvm_exec_unlock (struct drm_gpuvm_exec *vm_exec );

that's it. one (1) argument. she's lowkey minimalist about it.


🌸 ARGUMENTS 🌸

  • vm_exec β€” the drm_gpuvm_exec wrapper. that's the lil container holding everything, and it's the only thing you hand over here. that's her whole job honestly.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜•: this one releases all dma-resv locks of all drm_gem_objects that were previously acquired through drm_gpuvm_exec_lock or its variants.

think of it like the group-chat version of "okay everyone, locks back to whoever had them, we're done". if you grabbed those locks with drm_gpuvm_exec_lock (or any of its variants), this is the function that lets them go. she don't acquire anything, she don't validate anything, she just releases, okay? iconic behaviour, no notes πŸ‘‘

ngl, this is literally the counterpart function. the "lock" girlies and the "unlock" girlie are a matched set. always pair them up fr fr ✨


πŸ”₯ RETURN πŸ”₯

0 on success, negative error code on failure.

yeah, I know, the signature up there says void 😭 β€” I'm just telling you exactly what the page says, I don't write the docs, I just make them cute. take it up with the kernel, bestie.


πŸ’œ SEE ALSO πŸ’œ

kernel file ./include/drm/drm_gpuvm.h, plus the entire extended universe of related symbols β€” and I mean the entire universe, strap in 🎒

like, that's a lot of reading. go off, you got this πŸ“šπŸ’–


hey bestie quick vibe check: you only get to unlock what you locked. this is the "release what you already grabbed with drm_gpuvm_exec_lock or its variants" function, per the description. don't be out here unlocking things you never locked πŸ™ˆ

and that's the whole page, mwah πŸ’‹ this one came straight from ./include/drm and it's dated October 2026 β€” so yeah, she's technically from the future. main character energy only. stay slay, keep your locks matched, and see you in the next (9) βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from