ttm_tt_backup(9)
π NAME π
okay bestie, welcome to ttm_tt_backup(9) from the Kernel API Manual β this is the page for ttm_tt_backup, the helper that backs up a struct ttm_tt. Thatβs the whole name moment. β¨
π SYNOPSIS π
long ttm_tt_backup (struct ttm_device *bdev , struct ttm_tt *tt , const
struct ttm_backup_flags flags );
π¦ ARGUMENTS π¦
bdevβ the TTM device. π«Άttβ thestruct ttm_tt. πflagsβ flags that govern the backup behaviour. π
β¨ DESCRIPTION β¨
okay so hereβs the job: it updates the page accounting and calls ttm_pool_shrink_tt to free pages or back them up. Thatβs the tea. π
π₯ RETURN π₯
It returns the number of pages freed or swapped out β or a negative error code on error. So yeah, negative means error vibes, bestie. π
π SEE ALSO π
the whole crew:
- Kernel file
./drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_swapout(9)ttm_kmap_iter_tt_init(9)ttm_tt_setup_backup(9)
π§ cute lil sign-off: source/version./drivers/gpu/drm/ttmΒ· date October 2026 Β· pagettm_tt_backup(9)β mwah π
π¦ 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