i915_ttm_move(9)
π i915_ttm_move(9) β like, the whole page, bestie
okay so this is a page from the Kernel API Manual, and the star of the show is i915_ttm_move(9) β¨ β literally the TTM move callback that i915 uses. yes, that i915. the GPU one. we're in the kernel, bestie, act accordingly π
πΈ NAME πΈ
i915_ttm_move β the TTM move callback that i915 uses. that's it, that's the tweet π
β¨ SYNOPSIS β¨
int i915_ttm_move (struct ttm_buffer_object *bo , bool evict , struct
ttm_operation_ctx *ctx , struct ttm_resource *dst_mem , struct ttm_place
*hop );
look at her. five arguments, returns an int, absolutely iconic π
π¦ ARGUMENTS π¦
boβ the buffer object. the main character, honestly π«Άevictβ abooltelling you whether this is an eviction. yes or no, no in-between πctxβ pointer to astruct ttm_operation_ctxthat says how the waits should be performed if waiting. like, it's giving "instructions for the waiting part" πdst_memβ the destinationttmresource. where we're going πβ¨hopβ if we need multihop, this says what temporary memory type to move to. a little layover flight, iykyk βοΈ
β RETURN β
0 if successful, negative error code otherwise π
(so like... zero = slay, negative = something went sideways, check the code π )
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c - Selftest failure modes for failsafe migration:(9)
i915_ttm_adjust_domains_after_move(9)i915_ttm_adjust_gem_after_move(9)i915_ttm_move_notify(9)struct i915_ttm_memcpy_arg(9)struct i915_ttm_memcpy_work(9)i915_gem_obj_copy_ttm(9)
lowkey a whole reading list. go read them, bestie, they're all connected π§ββοΈ
okay that's the whole page, no cap π and for the cute sign-off: this little beauty lives under ./drivers/gpu/drm/i915/gem, dated October 2026 β so like, future vibes, but the facts are timeless π¦π see you in the next manpage, mwah π«Άβ¨
π¦ 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