STRUCT TTM_GLOBAL(9)
πΈ struct ttm_global(9) πΈ
okay so bestie, welcome to the Kernel API Manual β yes, that's the manual name, and yes, we're literally reading kernel docs together, this is our thing now π
β¨ NAME β¨
struct ttm_global β the buffer object driver's global data, like the group chat settings for the whole driver, no cap π«Ά
π¦ SYNOPSIS π¦
struct ttm_global {
struct page *dummy_read_page;
struct list_head device_list;
atomic_t bo_count;
};
three members, all iconic in their own way, let's get into it β
π Members π
dummy_read_pageβ astruct page *, i.e. a pointer to a dummy page that gets used when somebody maps requests for pages that are unpopulated (empty, no vibes, nothing home). and here's the key part bestie: it's constant after init β set it once at init and then leave it alone, periodt πdevice_listβ astruct list_headholding the list of buffer object devices. it is protected byttm_global_mutexπ₯ so like, respect the lock or it's giving chaos, fr frbo_countβ anatomic_twith the number of buffer objects allocated by devices. literally just a count, but make it atomic π
π SEE ALSO π
- Kernel file
./include/drm/ttm/ttm_device.h struct ttm_device(9)
π reminder bestie:dummy_read_pagestays constant after init, anddevice_listlives and dies byttm_global_mutex. no shortcuts π«Ά
and that's the whole page! this little gem lives in ./include/drm/ttm and the docs are dated October 2026, filed under struct ttm_global(9) β mwah, go read your kernel headers, ily, bye πβ¨π
π¦ 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