append_oa_status(9)
π append_oa_status(9) β Kernel API Manual π
π NAME π
append_oa_status β appends a status record to a userspace read() buffer. Thatβs the whole gig, and it eats every time. π
β¨ SYNOPSIS β¨
int append_oa_status (struct i915_perf_stream *stream , char __user *buf
, size_t count , size_t *offset , enum drm_i915_perf_record_type type );
π ARGUMENTS π
streamβ an i915-perf stream that was opened for OA metrics.bufβ the destination buffer handed over by userspace.countβ the number of bytes userspace wants to read.offsetβ (inout) the current position for writing intobuf.typeβ the kind of status to report to userspace.
π DESCRIPTION π
okay so picture this, bestie: append_oa_status writes a status record into the userspace read buffer. Weβre talking about a status record such as DRM_I915_PERF_RECORD_OA_REPORT_LOST β yes, that exact one. β¨π₯
And the lil rule to remember is iconic: the buf offset will only be updated on success. No success? No offset move. Periodt. π
π RETURN π
0on success. slay. π- negative error code on failure. π
π SEE ALSO π
okay bestie, the whole i915 perf cinematic universe is right here:
- Kernel file
./drivers/gpu/drm/i915/i915_perf.c i915 Perf Overview(9)i915 Perf History and Comparison with Core Perf(9)OA Tail Pointer Race(9)struct perf_open_properties(9)oa_buffer_check_unlocked(9)append_oa_sample(9)gen8_append_oa_reports(9)gen8_oa_read(9)gen7_append_oa_reports(9)gen7_oa_read(9)i915_oa_wait_unlocked(9)i915_oa_poll_wait(9)i915_oa_read(9)oa_get_render_ctx_id(9)oa_put_render_ctx_id(9)i915_oa_stream_enable(9)i915_oa_stream_disable(9)i915_oa_stream_init(9)i915_perf_read(9)i915_perf_poll_locked(9)i915_perf_poll(9)i915_perf_enable_locked(9)i915_perf_disable_locked(9)i915_perf_ioctl_locked(9)i915_perf_ioctl(9)i915_perf_destroy_locked(9)i915_perf_release(9)i915_perf_open_ioctl_locked(9)read_properties_unlocked(9)i915_perf_open_ioctl(9)i915_perf_register(9)i915_perf_unregister(9)i915_perf_add_config_ioctl(9)i915_perf_remove_config_ioctl(9)i915_perf_init(9)i915_perf_fini(9)i915_perf_ioctl_version(9)
Sign-off bestie: this page comes from./drivers/gpu/drm/i915, itβs datedOctober 2026, and the manual page isappend_oa_status(9). Stay perf-y. π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms