i915_ttm_restore_region(9)
π i915_ttm_restore_region β Kernel API Manual π
okay so bestie, welcome to the i915_ttm_restore_region page β it lives in the Kernel API Manual and it's genuinely so iconic once you get what it's doing. sit down, grab a strawberry drink π, and let's go.
β¨ NAME β¨
i915_ttm_restore_region β restores the backed-up objects of a region from smem. like, it puts them back. no cap. π«Ά
πΈ SYNOPSIS πΈ
int i915_ttm_restore_region (struct intel_memory_region *mr , u32 flags
);
that's the whole signature, babe β one memory region, one flags value, one int coming back at you π
π ARGUMENTS π
mrβ the memory region. the main character of this whole situation πflagsβ the TTM backup flags. yeah, those ones. π
π DESCRIPTION π
so what it does is β it loops over all the objects of a region, and if they're backed-up, it restores them from smem. that's it, that's the vibe. a little for-loop of love, one object at a time, checking and restoring. β¨
not me being obsessed with how simple that is. literally just: backed up? restore. backed up? restore. periodt. π¦
π₯ RETURN π₯
- Zero on success π₯³
- a negative error code on error π
so if you get 0, slay. if you get negative, something went sideways and you should look at it. fr fr.
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.cβ the source, go read it bestie π i915_ttm_backup_free(9)struct i915_gem_ttm_pm_apply(9)i915_ttm_recover_region(9)i915_ttm_backup_region(9)
all of these are the friend group of this function β backup, free, apply, recover, restore. iykyk π
lowkey reminder: this documentation page ships with the kernel source from./drivers/gpu/drm/i915/gem, dated October 2026, and it's pagei915_ttm_restore_region(9)of the Kernel API Manual. mwah, go touch some registers πβ¨πΈ
π¦ 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