i915_ttm_backup_region(9)
π i915_ttm_backup_region(9) β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual and it's all about i915_ttm_backup_region β one little function, and honestly? it's giving "quietly doing the most". πΈ
π NAME π
i915_ttm_backup_region β back up all the objects of a region to smem. like, all of them. every last one. no cap. π
π¦ SYNOPSIS π¦
int i915_ttm_backup_region (struct intel_memory_region *mr , u32 flags
);
that's the whole signature, copied verbatim because we do not play with code around here β¨
π ARGUMENTS π
mrβ the memory region π this is the region our main character is working with.flagsβ TTM backup flags π© the little switches that tell the backup how to behave.
π DESCRIPTION π
okay so picture this: the function literally loops over all the objects of a region, and then it makes a call on each one, bestie-style. π₯
- if an object is evictable, it evicts it. bye babe π
- if an object is pinned, it backs it up using a backup object. secure the bag π
that's the vibe check: evict the evictable, back up the pinned. periodt.
β RETURN β
- Zero on success π (iconic, flawless)
- a negative error code on error π (it happens to the best of us)
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.cπ i915_ttm_backup_free(9)struct i915_gem_ttm_pm_apply(9)i915_ttm_recover_region(9)i915_ttm_restore_region(9)
all the related lore, iykyk π«Ά
ngl if you're reading this page you're already deep in the i915 gem/ttm trenches and honestly? respect. π
and that's a wrap, bestie π this little page dropped in October 2026, lives under ./drivers/gpu/drm/i915/gem, and it's serving Kernel API Manual energy from the first line to the last. 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