i915_perf_open_ioctl_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– i915_perf_open_ioctl_locked(9) πŸ’–

okay so first things first: this page is from the Kernel API Manual, and the title is i915_perf_open_ioctl_locked(9). Yes bestie, we're in kernel land. Buckle up. πŸŽ€

✨ NAME ✨

i915_perf_open_ioctl_locked β€” DRM ioctl() for userspace to open a stream FD. That's the whole name vibe. πŸ’…

🌸 SYNOPSIS 🌸

int i915_perf_open_ioctl_locked (struct i915_perf *perf , struct
       drm_i915_perf_open_param *param , struct perf_open_properties *props ,
       struct drm_file *file );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • perf β€” i915 perf instance. Your perf main character. πŸ’œ
  • param β€” The open parameters passed to DRM_I915_PERF_OPEN
  • props β€” individually validated u64 property value pairs
  • file β€” drm file

πŸ’œ DESCRIPTION πŸ’œ

For the interface details, go see i915_perf_ioctl_open β€” that's the reference, periodt. πŸ‘‘

This one implements further stream config validation and stream initialization on behalf of i915_perf_open_ioctl, with the gt->perf.lock mutex taken to serialize with any non-file-operation driver hooks. So the lock is held, bestie, and that's the whole serialize with any non-file-operation driver hooks situation. πŸ”’

🫢 NOTE 🫢

At this point the props have only been validated in isolation, and it's still necessary to validate that the combination of properties makes sense. Not me side-eyeing isolated validation β€” the combination check is still required. πŸ™ˆ

In the case where userspace is interested in OA unit metrics, then further config validation and stream initialization details will be handled by i915_oa_stream_init. The code here should only validate config state that will be relevant to all stream types / backends. So keep this bit universal. 🌈

πŸ”₯ RETURN πŸ”₯

zero on success or a negative error code. That's it. Zero = slay, negative = the error code vibe. 😭

⭐ SEE ALSO ⭐

Kernel file: ./drivers/gpu/drm/i915/i915_perf.c

Then the whole reference squad, no cap:


that's the page, bestie! πŸ’Œ source/version: ./drivers/gpu/drm/i915; date: October 2026; page: i915_perf_open_ioctl_locked(9). hydrate and don't forget the mutex. πŸ“

πŸ“¦ where this page comes from