ttm_resourc...eate_debugfs(9)
β¨ NAME β¨
ok so this is ttm_resource_manager_create_debugfs β the kernel API manual page (section 9, bestie, we're in kernel developer land now) and it literally does what it says: it creates a debugfs entry for a specified resource manager. that's the whole vibe π
π SYNOPSIS π
void ttm_resource_manager_create_debugfs (struct ttm_resource_manager
*man , struct dentry *parent , const char *name );
no return value, she just does it. void, zero notes, iconic behavior honestly π«Ά
πΈ ARGUMENTS πΈ
manβ the TTM resource manager π like, the actual star of the show. this is the one whose debugfs stats file is gonna get created.parentβ the debugfs directory where the file is gonna live π think of it as the folder she's moving into.nameβ the filename to create β¨ you're naming the baby, choose wisely.
π DESCRIPTION π
okay so basically this function sets up a debugfs file π that you can use to peek at the debug statistics of the ttm_resource_manager you passed in as man. that's it. that's the function. lowkey elegant, highkey useful. no cap π₯
π¦ SEE ALSO π¦
the kernel file lives right here in all its glory:
./drivers/gpu/drm/ttm/ttm_resource.c
and here's the whole friend group π«Ά β every single one of these, no skipping:
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_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_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
ngl if you got here by accident looking for something else, go read ttm_resource_manager_debug(9) β she's right there in the list, bestie π
and that's a wrap π this page came from <pink>./drivers/gpu/drm/ttm</pink> and it's dated October 2026 β so yeah, technically a little time-travel moment π°οΈβ¨ slay, see you in the next manpage ππβ
π¦ 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