ttm_resource_fini(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_resource_fini(9) πŸ’…

okay so welcome to the Kernel API Manual bestie, we're doing a little cleanup era today ✨

🌸 NAME 🌸

ttm_resource_fini β€” the resource destructor, aka the farewell tour πŸŽ€

πŸ’– SYNOPSIS πŸ’–

void ttm_resource_fini (struct ttm_resource_manager *man , struct
ttm_resource *res );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • man β€” the resource manager that this resource belongs to, its whole home base 🏠
  • res β€” the resource we're cleaning up, bye boo πŸ‘‹

⭐ DESCRIPTION ⭐

So resource manager backends should use this one to clean up the TTM resource objects before freeing the underlying structure. It's literally the responsible thing to do πŸ’…

It makes sure the resource is removed from the LRU before destruction β€” no ghost entries lingering in the list, we don't do that here πŸ™ˆ

And it's the counterpart of ttm_resource_init, so like... init's other half, the matching bookend, the duo we deserve 🫢 periodt.

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c β€” the source, the mothership πŸ‘‘


and that's the whole page bestie, no cap, every single line accounted for πŸ’€βœ¨

this cutie dropped from ./drivers/gpu/drm/ttm, dated October 2026 β€” go off, icon, we'll see you in the next release πŸŽ€πŸ’œ

πŸ“¦ where this page comes from