i915_gem_obj_copy_ttm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is i915_gem_obj_copy_ttm(9) from the Kernel API Manual β€” literally the page about copying the contents of one ttm-based gem object to another, and it is giving very specific kernel business πŸ’…βœ¨

🌸 NAME 🌸

i915_gem_obj_copy_ttm β€” copy the contents of one ttm-based gem object to another. that's the assignment, and it ate πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

int i915_gem_obj_copy_ttm (struct drm_i915_gem_object *dst , struct
       drm_i915_gem_object *src , bool allow_accel , bool intr );

πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” the destination object, aka the one receiving the copy, main character energy 🫢
  • src β€” the source object, aka the one the copy comes from, we love a reliable source ✨
  • allow_accel β€” Allow using the blitter. Otherwise TTM memcpy is used. bestie, it's giving β€œblitter if allowed, TTM memcpy otherwise” πŸ”₯
  • intr β€” Whether to perform waits interruptible:</se> yes, that colon is literally part of the original, and we respect it πŸ™ˆ

πŸ’œ NOTE πŸ’œ

The caller is responsible for assuring that the underlying TTM objects are populated if needed and locked. that's on you, bestie β€” no cap, don't skip the prep work 😭

⭐ RETURN ⭐

  • Zero on success.
  • Negative error code on error.
  • If intr == true, then it may return -ERESTARTSYS or -EINTR. so if you asked for interruptible waits, those are the plot twists πŸ’€

🌈 SEE ALSO 🌈


and that's the page, bestie πŸŽ€ source/version: ./drivers/gpu/drm/i915/gem, date: October 2026, manual: i915_gem_obj_copy_ttm(9). slay, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from