xe_bo_can_migrate(9)
π 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:
xe_bo_has_single_placement(9)xe_bo_is_stolen_devmem(9)xe_bo_is_vm_bound(9)xe_bo_pin_account(9)xe_bo_unpin_account(9)xe_bo_is_visible_vram(9)xe_bo_move_notify(9)xe_bo_set_purgeable_shrinker(9)xe_bo_set_purgeable_state(9)xe_ttm_bo_purge(9)xe_bo_shrink(9)xe_bo_notifier_prepare_pinned(9)xe_bo_notifier_unprepare_pinned(9)xe_bo_evict_pinned(9)xe_bo_restore_pinned(9)xe_bo_read(9)xe_bo_alloc(9)xe_bo_free(9)xe_bo_init_locked(9)xe_bo_create_locked(9)xe_bo_create_user(9)xe_bo_create_pin_range_novm(9)xe_bo_create_pin_map_at_novm(9)xe_bo_create_pin_map(9)xe_bo_create_pin_map_novm(9)xe_managed_bo_reinit_in_vram(9)xe_bo_pin_external(9)xe_bo_pin(9)xe_bo_unpin_external(9)xe_bo_validate(9)xe_bo_decompress(9)xe_bo_lock(9)xe_bo_unlock(9)xe_bo_migrate(9)xe_bo_evict(9)xe_bo_needs_ccs_pages(9)__xe_bo_release_dummy(9)xe_bo_put_commit(9)xe_bo_dev_init(9)xe_bo_dev_fini(9)xe_bo_dumb_create(9)
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
- 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