ttm_resource_fini(9)
π 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 π
ttm_resource_cursor_init(9)ttm_resource_cursor_fini(9)ttm_lru_bulk_move_init(9)ttm_lru_bulk_move_fini(9)ttm_lru_bulk_move_tail(9)ttm_resource_init(9)ttm_resource_try_charge(9)ttm_resource_intersects(9)ttm_resource_compatible(9)ttm_resource_manager_init(9)ttm_resource_manager_usage(9)ttm_resource_manager_debug(9)ttm_resource_manager_first(9)ttm_resource_manager_next(9)ttm_lru_first_res_or_null(9)ttm_kmap_iter_iomap_init(9)Linear io iterator(9)ttm_kmap_iter_linear_io_init(9)ttm_kmap_iter_linear_io_fini(9)ttm_resource_manager_create_debugfs(9)ttm_resource_manager_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
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
- 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