xe_migrate_alloc(9)
π xe_migrate_alloc β the Kernel API Manual era π
okay so bestie, welcome to the xe_migrate_alloc(9) page, like, the actual kernel API manual one, and we're gonna get you comfy with it in like two minutes flat. it live in the xe corner of the kernel and honestly? it's giving "small function, big responsibilities". let's go π
β¨ NAME β¨
xe_migrate_alloc β allocates a migrate struct for a given &xe_tile π
π¦ SYNOPSIS π¦
struct xe_migrate * xe_migrate_alloc (struct xe_tile *tile );
πΈ ARGUMENTS πΈ
tileβ thexe_tileyou're handing over. that's it, that's the whole argument, she's lowkey simple π«Ά
π§ DESCRIPTION π§
so what does it do? it allocates a xe_migrate for a given tile. that's the tea, no cap ββ¨ you give it a tile, it sets you up with a migrate struct for that tile. main character energy for a one-liner, honestly π
β RETURN β
- you get an
xe_migrateback on success β slay π - or
NULLwhen it's out of memory π (yes, that's the fail case, no cap, watch for it)
π SEE ALSO π
like, the whole friend group, fr fr:
- Kernel file
./drivers/gpu/drm/xe/xe_migrate.candstruct xe_migrate(9) xe_migrate_init(9)xe_migrate_copy(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)
ngl bestie, the only real gotcha here is theNULLreturn β if you're out of memory you getNULL, not a struct, so check it before you go dereferencing like a menace π
okay and finally, the lil sign-off: this page lives under ./drivers/gpu/drm/xe, it's dated October 2026, and it's filed as xe_migrate_alloc(9) β that's the whole footer, mwah πβ¨ you ate, periodt ππ
π¦ 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