STRUCT TTM_BACKUP_FLAGS(9)
okay bestie, youβre looking at struct ttm_backup_flags(9) from the Kernel API Manual, and itβs giving tiny-but-mighty flag-struct energy β¨
π NAME π
struct ttm_backup_flags β Flags to govern backup behaviour.
β¨ SYNOPSIS β¨
okay so this is the whole struct, no cap:
struct ttm_backup_flags {
u32 purge : 1;
u32 writeback : 1;
};
π Members π
these are the two fields inside it, and yes theyβre both u32 bitfields with : 1:
purgeβ Free pages without backing up. Bypass pools. π«§ literally the βno backup, just freeβ option.writebackβ Attempt to copy contents directly to swap space, even if that means blocking on writes to external memory. π bestie, it said blocking, so it can wait on those external-memory writes.
no extra lore, thatβs genuinely what the two flags say π
π₯ SEE ALSO π₯
Kernel file: ./include/drm/ttm/ttm_tt.h β and the whole squad is:
struct ttm_tt(9)struct ttm_kmap_iter_tt(9)ttm_tt_is_swapped(9)ttm_tt_is_backed_up(9)ttm_tt_clear_backed_up(9)ttm_tt_create(9)ttm_tt_init(9)ttm_tt_fini(9)ttm_tt_destroy(9)ttm_tt_swapin(9)ttm_tt_populate(9)ttm_tt_unpopulate(9)ttm_tt_mark_for_clear(9)ttm_agp_tt_create(9)
xoxo from source/version ./include/drm/ttm, dated October 2026, all about struct ttm_backup_flags(9) ππ¦
π¦ 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