xe_bo_can_migrate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xe_bo_can_migrate(9) β€” Kernel API Manual πŸ’–

okay so bestie, this is the whole vibe for xe_bo_can_migrate(9) from the Kernel API Manual β€” yes, the manual name is folded right up here like a little bow πŸŽ€. It’s giving β€œcan this buffer object migrate?” energy, and I’m obsessed.

✨ NAME ✨

xe_bo_can_migrate β€” whether a buffer object likely can be migrated πŸ’«

πŸŽ€ SYNOPSIS πŸŽ€

bool xe_bo_can_migrate (struct xe_bo *bo , u32 mem_type );

🫢 ARGUMENTS 🫢

  • bo β€” the buffer object to migrate, aka the main character here πŸ‘‘
  • mem_type β€” the TTM memory type intended to migrate to, so like the destination vibe check 🌈

πŸ’… DESCRIPTION πŸ’…

okay so what this does is check whether the buffer object supports migration to the given memory type. no cap, that’s the whole point.

⚠️ important: pinning may affect the ability to migrate as returned by this function β€” so the answer can lowkey change if somebody’s got it pinned, bestie.

this function is primarily intended as a helper for checking the possibility to migrate buffer objects, and it can be called without the object lock held. slay, no lock required, periodt.

πŸ”₯ RETURN πŸ”₯

true if migration is possible, false otherwise. that’s it, that’s the tea β˜•βœ¨

🌸 SEE ALSO 🌸

the kernel file is ./drivers/gpu/drm/xe/xe_bo.c, and the whole squad is right here β€” every single one, no skips:


and that’s the page, bestie 🫢 this cutie came from ./drivers/gpu/drm/xe, dated October 2026, and it’s literally titled xe_bo_can_migrate(9) β€” bye, love u, stay slay πŸ’…πŸ’–

πŸ“¦ where this page comes from