i915_oa_stream_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– i915_oa_stream_init(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little icon is i915_oa_stream_init, and it's the vibe-check gatekeeper for OA streams. let's get into it πŸŽ€


🌸 NAME 🌸

i915_oa_stream_init β€” validates the combined props for an OA stream, then inits it. fr fr, it's the "does this whole config actually make sense together" check πŸ’…


✨ SYNOPSIS ✨

int i915_oa_stream_init (struct i915_perf_stream *stream , struct
       drm_i915_perf_open_param *param , struct perf_open_properties *props );

🫢 ARGUMENTS 🫢

  • stream β€” an i915 perf stream, the main character of this whole situation πŸ‘‘
  • param β€” the open parameters that got passed to DRM_I915_PERF_OPEN
  • props β€” the property state that configures the stream (and yeah, these get individually validated elsewhere, so don't worry about that part here 🧚)

πŸ¦‹ DESCRIPTION πŸ¦‹

so read_properties_unlocked validates properties in isolation β€” one at a time, each on its own. but bestie, that doesn't ensure the combination necessarily makes sense 😭 like, every ingredient can be fine and the recipe can still be a mess. that's literally what this function is here for.

at this point it's already been determined that userspace wants a stream of OA metrics. so far so good. but we still need to further validate that the combined properties are OK. vibe check on the whole group chat, not just each member individually πŸ’€

and if the configuration does make sense? slay. then we allocate memory for a circular OA buffer and apply the requested metric set configuration. iconic behavior, no cap πŸ”₯


🌈 RETURN 🌈

zero on success, or a negative error code. that's it, that's the whole thing πŸ’œ


πŸŽ€ SEE ALSO πŸŽ€

kernel file ./drivers/gpu/drm/i915/i915_perf.c, plus a whole friend group of related icons:


πŸ’€ reminder bestie: read every single one of those before you go poking at perf streams, iykyk

okay that's the whole page!! this one came from ./drivers/gpu/drm/i915, dated October 2026 β€” go drink some water and go read the kernel source, ily πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from