i915_ttm_backup_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🧚

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