drm_gpuva_unlink_defer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

So this is a page from the Kernel API Manual, and honestly? It's a little baddie with one job. Let's get into it πŸŽ€


✨ NAME ✨

drm_gpuva_unlink_defer β€” unlink a &drm_gpuva with deferred vm_bo cleanup

Like, it unlinks a &drm_gpuva... but the vm_bo cleanup? Deferred. She's not doing it right now, she's doing it later. Main character energy tbh πŸ’…


🌸 SYNOPSIS 🌸

void drm_gpuva_unlink_defer (struct drm_gpuva *va );

Yeah bestie, that's the whole signature. Returns void, takes one pointer, no drama. Slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • va β€” the drm_gpuva to unlink. That's it. That's the whole argument. She's the one getting unlinked, periodt.

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: drm_gpuva_unlink_defer is similar to drm_gpuva_unlink, but with two ✨iconic✨ little differences:

  • it uses drm_gpuvm_bo_put_deferred instead, and
  • it takes the lock for the caller 🫢

Not you having to grab the lock yourself β€” no ma'am, she's got you. You just hand her the drm_gpuva and she handles the locking and the deferred cleanup. Lowkey the nicest thing ever.


πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file ./drivers/gpu/drm/drm_gpuvm.c and honestly like… every related function, bestie. Buckle up πŸ’€


fr fr, read the whole list. iykyk 😭 the GPUVM lore is deep and you're gonna need it.

Anyway bestie, that's the page! Go unlink something, but defer that cleanup like the icon you are. πŸ’œ

β€” written from ./drivers/gpu/drm, dated October 2026, and yes the page really is called drm_gpuva_unlink_defer(9). mwah πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from