i915_ttm_restore_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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 page i915_ttm_restore_region(9) of the Kernel API Manual. mwah, go touch some registers πŸ’‹βœ¨πŸŒΈ
πŸ“¦ where this page comes from