xe_migrate_copy(9)
πΈ NAME πΈ
okay so bestie, welcome to xe_migrate_copy(9) from the Kernel API Manual β itβs literally the function for copying content of TTM resources. thatβs the whole assignment, and it ate. π
β¨ SYNOPSIS β¨
struct dma_fence * xe_migrate_copy (struct xe_migrate *m , struct xe_bo *src_bo , struct xe_bo *dst_bo , struct ttm_resource *src , struct ttm_resource *dst , bool copy_only_ccs );
π ARGUMENTS π
mβ the migration context. main character energy for this whole operation, ngl.src_boβ the buffer objectsrcis currently bound to. yes bestie, that one.dst_boβ if youβre copying between resources created for the same bo, set this to the same value assrc_bo. if youβre copying between buffer objects, set it to the buffer objectdstis currently bound to. periodt.srcβ the source TTM resource. the origin story.dstβ the dst TTM resource. the destination era.copy_only_ccsβ iftrue, copy only CCS metadata. thatβs the vibe check right there.
π¦ DESCRIPTION π¦
so it copies the contents of src to dst: on flat CCS devices, the CCS metadata is copied as well if needed, or β if itβs not present β the CCS metadata of dst is cleared for security reasons. not me being dramatic, thatβs just security doing security things. π₯
π« RETURN π«
pointer to a dma_fence representing the last copy batch, or an error pointer on failure. and if there is a failure, any copy operation started by the function call has been synced. so like, it cleans up its own situation. iconic. π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_migrate.candstruct xe_migrate(9) xe_migrate_alloc(9)xe_migrate_init(9)xe_migrate_resolve(9)xe_migrate_lrc(9)xe_migrate_ccs_rw_copy(9)xe_migrate_ccs_rw_copy_clear(9)xe_migrate_exec_queue(9)xe_migrate_vram_copy_chunk(9)xe_migrate_clear(9)xe_migrate_update_pgtables(9)xe_migrate_wait(9)xe_migrate_to_vram(9)xe_migrate_from_vram(9)xe_migrate_access_memory(9)xe_migrate_job_lock(9)xe_migrate_job_unlock(9)xe_migrate_job_lock_assert(9)
thatβs the whole page, bestie π«Ά β source/version ./drivers/gpu/drm/xe, dated October 2026, page xe_migrate_copy(9). slay and bye π
π¦ 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