xe_bo_create_pin_map(9)
π xe_bo_create_pin_map(9) β Kernel API Manual, group-chat edition π
πΈ NAME πΈ
xe_bo_create_pin_map β Create pinned and mapped bo. Yup, that's the name, and it ate. π
β¨ SYNOPSIS β¨
Here's the summoning spell, exactly as written β no edits, no autocorrect, bestie:
struct xe_bo * xe_bo_create_pin_map (struct xe_device *xe , struct
xe_tile *tile , struct xe_vm *vm , size_t size , enum ttm_bo_type type ,
u32 flags , struct drm_exec *exec );
π ARGUMENTS π
Okay, let's meet the cast:
xeβ the xe device. Main character device energy.tileβ the tile to select for migration of this bo, and the tile used for (the source line literally ends there, no cap π).vmβ the vm to associate the buffer object with. The vm's resv must be locked with the transaction represented byexec. GGTT binding if any. Only to be non-NULL forttm_bo_type_kernelbos.sizeβ the storage size to use for the bo.typeβ the TTM buffer object type.flagsβXE_BO_FLAG_flags. That's it, that's the flag situation.execβ thedrm_exectransaction to use for exhaustive eviction, and previously used for locking vm's resv.
π¦ DESCRIPTION π¦
Create a pinned and mapped bo. That bo will be external and not associated with a VM. It's giving external, not-associated-with-a-VM energy, and that's the whole description. β¨
π RETURN π
- On success: the buffer object. Slay. π
- On failure: a negative error pointer. π
- In particular, the function may return
ERR_PTR(-EINTR)ifexecwas configured for interruptible locking. That's the special little failure gremlin to watch for.
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/xe/xe_bo.c
The whole friend group:
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_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_can_migrate(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)
xoxo π β source ./drivers/gpu/drm/xe, version/manual xe_bo_create_pin_map(9), date October 2026.
π¦ 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