i915_gem_ob...moving_fence(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_gem_object_wait_moving_fence(9)

Okay bestie, welcome to the Kernel API Manual ✨ β€” this one is all about i915_gem_object_wait_moving_fence, which honestly is the most "wait for the object's moving fence if any" function to ever wait for an object's moving fence if any. Lowkey iconic name. πŸŽ€


✨ NAME ✨

i915_gem_object_wait_moving_fence β€” wait for the object's moving fence, if any πŸ¦‹

(Yes, "if any." That's the whole vibe check. Not every object is out here having a moving fence, and that's fine.)


🌸 SYNOPSIS 🌸

int i915_gem_object_wait_moving_fence (struct drm_i915_gem_object *obj ,
bool intr );

That's the whole signature, no cap. She takes two things and returns an int. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the object whose moving fence we're waiting for. Like, the actual main character of this operation. The object in question. The one with the fence. πŸ‘‘
  • intr β€” whether to wait interruptible. That's it, that's the flag. true if you want the wait to be interruptible, and you already know which one you're picking. 🫢

πŸ’« DESCRIPTION πŸ’«

So here's the tea β˜•: if the moving fence signaled without an error, it gets detached from the object and put. Like, removed and released. Clean break, no drama, we love to see it. ✨

That's genuinely the whole description, bestie β€” short and slay. Don't go looking for extra lore, there isn't any in the original. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • 0 β€” successful. Slay. πŸ’…
  • -ERESTARTSYS β€” the wait was interrupted. 😭 Somebody hit the interrupt, it wasn't me.
  • negative error code β€” the async operation represented by the moving fence failed. πŸ’€ That's the bad ending, fr fr.

🌈 SEE ALSO 🌈

Kernel file: ./drivers/gpu/drm/i915/gem/i915_gem_object.c

And the whole friend group, in order, no skips:

Like, go read i915_gem_object_get_moving_fence(9) next if you wanna know where the fence came from in the first place. iykyk. 🧚


Heads up bestie: this page lives under ./drivers/gpu/drm/i915/gem, dated October 2026, and that's the Kernel API Manual version of the story. Go touch some pages. πŸ’œ

Okay bye, drink water, don't forget the intr argument, mwah πŸ“πŸ’–

πŸ“¦ where this page comes from