i915_gem_object_can_migrate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i915_gem_object_can_migrate(9) ✨

okay so bestie, welcome to the kernel API manual (section 9, she's fancy πŸ’…) β€” today we're looking at i915_gem_object_can_migrate, and honestly? she's a vibe checker for GPU objects. let's get into it πŸ¦‹


🌸 NAME 🌸

i915_gem_object_can_migrate β€” answers the question "can this object likely be migrated?" πŸ’« (key word: likely, bestie, hold that thought)


πŸŽ€ SYNOPSIS πŸŽ€

bool i915_gem_object_can_migrate (struct drm_i915_gem_object *obj , enum
       intel_region_id id );

she takes two things and gives you back a bool. that's it. that's the whole function. icon behavior.


🫢 ARGUMENTS 🫢

  • obj β€” the object we're trying to migrate, aka the main character of this whole operation πŸ‘‘
  • id β€” the region we intend to migrate to, aka the destination vibe 🌈

πŸ’– DESCRIPTION πŸ’–

so what she does is: check whether the object backend actually supports migration to the given region. that's the whole job. no cap.

but β€” and this is the important part, don't skip it β€” pinning may affect the ability to migrate as returned by this function 😭 like, if something's pinned, the answer you get back might not be the answer you expect. it's giving "it's complicated".

also she's primarily intended as a helper for checking the possibility of migrating objects. so she's a helper! she's not the whole story! and heads up: she might be slightly less permissive than i915_gem_object_migrate when it comes to objects with the I915_BO_ALLOC_USER flag set. so like, she's a little stricter in that specific case. not a hater, just careful 🧚


⭐ RETURN ⭐

  • true if migration is possible πŸ’š
  • false otherwise πŸ’€

literally that simple. slay.


πŸ”₯ SEE ALSO πŸ”₯

the source lives in the kernel file ./drivers/gpu/drm/i915/gem/i915_gem_object.c β€” go read her fr fr πŸ“–

and here's the whole friend group, alphabetically-adjacent and ready to be clicked:


and that's the page!! mwah πŸ’‹ this whole thing lives under ./drivers/gpu/drm/i915/gem and it's dated October 2026, and yes the footer says i915_gem_object_can_migrate(9) one more time because she loves a dramatic exit βœ¨πŸ¦‹πŸ’œ
πŸ“¦ where this page comes from