i915_oa_wait_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hey bestie, welcome to i915_oa_wait_unlocked(9) β€” your fave page from the Kernel API Manual πŸ‘‘ and yes, i915_oa_wait_unlocked handles blocking IO until OA data is available. no cap. πŸ’…


✨ SYNOPSIS ✨

int i915_oa_wait_unlocked (struct i915_perf_stream *stream );

🌸 ARGUMENTS 🌸

  • stream β€” an i915-perf stream opened for OA metrics. this is the stream bestie we’re waiting on 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: userspace tries to read from a blocking stream FD opened for OA metrics, and this function is the one handling the waiting game πŸ’… it waits until the hrtimer callback finds a non-empty OA buffer and wakes us up. that’s the whole vibe. ✨


πŸŽ€ NOTE πŸŽ€

ngl, it’s acceptable to have this return with some false positives since any subsequent read handling will return -EAGAIN if there isn’t really data ready for userspace yet. so yeah, a little false-positive moment is not the end of the world 🫢


⭐ RETURN ⭐

zero on success, or a negative error code. periodt. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯


source/version: ./drivers/gpu/drm/i915 🌈 β€’ date: October 2026 πŸŽ€ β€’ page: i915_oa_wait_unlocked(9) πŸ’–

πŸ“¦ where this page comes from