i915_perf_poll_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_perf_poll_locked β€” a sweet lil page from the Kernel API Manual

okay bestie, so this one is i915_perf_poll_locked(9) and honestly? It's the glow-up your polling code has been waiting for. It's a poll_wait() but with the right wait queue for a perf stream. iykyk πŸ’–


✨ NAME ✨

i915_perf_poll_locked β€” poll_wait() with a suitable wait queue for stream πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

__poll_t i915_perf_poll_locked (struct i915_perf_stream *stream , struct
file *file , poll_table *wait );

🌸 ARGUMENTS 🌸

  • stream β€” an i915 perf stream πŸ’«
  • file β€” an i915 perf stream file, like, the file-y friend of the stream
  • wait β€” the poll state table (it's giving "hold my place in line")

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea, bestie: when userspace wants to poll on an i915 perf stream, this function handles it by calling through to i915_perf_stream_ops->poll_wait, and that call goes to poll_wait with a wait queue that's gonna get woken up whenever there's shiny new stream data. ✨

That's it, that's the whole vibe check. It's a tiny little middle-man and it ate. πŸ’…


πŸ”₯ RETURN πŸ”₯

Any poll events that are ready without sleeping. No cap β€” if it's ready right now, you get it right now, no nap required. 😴❌


🌈 SEE ALSO 🌈

okay this list is iconic and also like, extremely long, so buckle up bestie, we're going shopping πŸ›οΈ


bestie note: this whole thing lives under ./drivers/gpu/drm/i915 🫢

and that's the page!! mwah πŸ’‹ sourced straight from the ./drivers/gpu/drm/i915 corner of the kernel, dated October 2026, Kernel API Manual energy only. go poll something cute, ily, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from