STRUCT TTM_OBJECT_FILE(9)
π struct ttm_object_file(9) β Kernel API Manual β¨
okay so bestie, welcome to the struct ttm_object_file(9) page β manual-name folded in, vibes immaculate, facts untouched π«Ά
πΈ NAME πΈ
struct ttm_object_file β the name line is literally just the struct name; the description field is empty in the original, so no invented lore here π
β¨ SYNOPSIS β¨
Hereβs the struct exactly as it appears β no edits, no βfixingβ the spacing, periodt:
struct ttm_object_file {
struct ttm_object_device *tdev;
spinlock_t lock;
struct list_head ref_list;
unsigned long ref_hash[1 << (( VMW_TTM_OBJECT_REF_HT_ORDER) - 1)];
struct kref refcount;
};
π Members π
tdevβ pointer to thettm_object_device. literally its whole job πlockβ the lock that protects theref_listlist and theref_hashhash tables. bodyguard behavior, no cap πref_listβ list ofttm_ref_objectsto be destroyed at file release. cleanup crew energy π§Ήref_hashβ hash tables of ref objects, one perttm_ref_type, for fast lookup of ref objects given a base object. speed-dating but for refs β‘refcountβ reference/usage count. keeping tally, slay π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vmwgfx/ttm_object.c get_dma_buf_unless_doomed(9)ttm_prime_refcount_release(9)ttm_prime_dmabuf_release(9)ttm_prime_fd_to_handle(9)ttm_prime_handle_to_fd(9)ttm_prime_object_init(9)
mwah π source/version: ./drivers/gpu/drm/vmwgfx Β· date: October 2026 Β· page: struct ttm_object_file(9) β bye 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