ttm_resource_compatible(9)
β¨ ttm_resource_compatible(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for ttm_resource_compatible β literally the vibe check of the TTM resource world π
π NAME π
ttm_resource_compatible β check if resource is compatible with placement. that's it, that's the whole gig π«Ά
πΈ SYNOPSIS πΈ
bool ttm_resource_compatible (struct ttm_resource *res , struct
ttm_placement *placement , bool evicting );
she takes three things and hands you back a bool, iconic behavior honestly π
π¦ ARGUMENTS π¦
resβ the resource to check. like, the actual thing we're inspecting πplacementβ the placement to check against. the standard our resource is being held up to β¨evictingβtrueif the caller is doing evictions. yes, evictions, the dramatic part π
π DESCRIPTION π
Returns true if the placement is compatible. that's the entire plot, no cap. a little yes/no moment, and honestly? we love a function that knows exactly what it is π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c β go read the source, bestie, it's giving main character energy π
and the whole friend group, in order, no skipping (iykyk):
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_fini(9), ttm_resource_try_charge(9), ttm_resource_intersects(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)
ngl if you got this far you're kind of a kernel girlie now π§π
okay that's the page!! from ./drivers/gpu/drm/ttm, dated October 2026, titled ttm_resource_compatible(9) β mwah, slay, periodt, see you in the next manpage bestie πΈππ¦
π¦ 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