ttm_resourc...ger_set_used(9)
β¨ ttm_resource_manager_set_used β¨
okay so bestie, this is a Kernel API Manual page for ttm_resource_manager_set_used(9) β the little function that flips the "we're using this memory manager" switch. no cap, it's short but it's lowkey important π
πΈ SYNOPSIS πΈ
void ttm_resource_manager_set_used (struct ttm_resource_manager *man ,
bool used );
it's giving "two arguments, one job" energy, and honestly? we stan a focused function π«Ά
π¦ ARGUMENTS π¦
manβ A memory manager object. that's the main character right there, the struct getting its flag adjusted πusedβ usage state to set. basically "are we using this or not" as abool, and you're deciding π
π DESCRIPTION π
so here's the tea β: this function sets the manager in use flag. that's it, that's the whole vibe.
but like, here's the important part β if it's disabled, the manager is no longer used for object placement. so like, it stops being picked for where objects go. not me casually removing a manager from the object-placement rotation π it's not deprecated or anything, it's just a straight-up state toggle, so set used to whatever you actually mean, bestie. no guessing, no cap.
π SEE ALSO π
the whole friend group, fr fr β go check these out:
- Kernel file
./include/drm/ttm/ttm_resource.h TTM_NUM_MOVE_FENCES(9)enum ttm_lru_item_type(9)struct ttm_lru_item(9)ttm_lru_item_init(9)struct ttm_resource_manager(9)struct ttm_bus_placement(9)struct ttm_resource(9)ttm_lru_item_to_res(9)struct ttm_lru_bulk_move_pos(9)struct ttm_lru_bulk_move(9)struct ttm_resource_cursor(9)struct ttm_kmap_iter_iomap(9)struct ttm_kmap_iter_linear_io(9)ttm_resource_manager_used(9)ttm_resource_manager_cleanup(9)ttm_resource_manager_for_each_res(9)
like, that's the whole squad, iykyk π
ok but seriously, this page lives in ./include/drm/ttm, dated October 2026, from the Kernel API Manual. slay, iconic, periodt. πβ¨
π¦ 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