drm_gpuvm_sm...ap_exec_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpuvm_sm_unmap_exec_lock(9) β€” a Kernel API Manual moment

okay bestie, sit down, because this is a kernel API manual page and the name up top is drm_gpuvm_sm_unmap_exec_lock(9) β€” yes, the manpage header is out here getting cropped like drm_gpuvm_sm...ap_exec_lock(9), we don't know her full government name in the title bar but we do know it, and it's giving "locking, but make it unmap."


✨ NAME ✨

drm_gpuvm_sm_unmap_exec_lock β€” locks the objects touched by drm_gpuvm_sm_unmap()

like literally that's the whole job. she locks. that's it. that's the girl. πŸ”’


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_gpuvm_sm_unmap_exec_lock (struct drm_gpuvm *gpuvm , struct
drm_exec *exec , u64 req_addr , u64 req_range );

she returns an int, she takes four args, no cap. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • gpuvm β€” the struct drm_gpuvm that's out here representing the GPU VA space. main character energy, honestly.
  • exec β€” the struct drm_exec locking context. this is the vibe check container, basically.
  • req_addr β€” the start address of the range you're about to unmap. u64, because addresses are long and so is this week.
  • req_range β€” the range of the mappings to unmap. also u64. also slay.

🌸 DESCRIPTION 🌸

so what does she do. this function locks β€” specifically via drm_exec_lock_obj β€” the objects that will be unmapped/remapped by drm_gpuvm_sm_unmap. that's it, that's the tea πŸ’…

and if you're sitting there like "okay but how am i supposed to use this," the page is literally pointing you at your other bestie: see drm_gpuvm_sm_map_exec_lock for expected usage. iykyk 🧚


⭐ RETURN ⭐

0 on success ✨ β€” or a negative error code 😭

that's the whole return value situation. no notes.


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/gpu/drm/drm_gpuvm.c, and she brought her entire friend group. every single one, no gatekeeping:

like... the whole roster. πŸ’€ she said "you WILL know my friends."


lowkey reminder bestie: this is the locking half, not the map/unmap itself. drm_gpuvm_sm_unmap() is the one doing the unmapping β€” this one is backstage holding the objects down. 🫢

and that's the page!! πŸŽ€ sourced from ./drivers/gpu/drm, dated October 2026, part of the Kernel API Manual β€” mwah, go lock some objects responsibly, ily, bye πŸ‘‘βœ¨

πŸ“¦ where this page comes from