STRUCT XE_RAS_GET_COUNTER_RESPONSE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct xe_ras_get_counter_response β€” the response struct for get counter, bestie πŸ’–

So like, this page lives in the Kernel API Manual (struct xe_ra...ter_response(9)), and it's literally just here to tell you what comes back when you ask the kernel for a counter. Slay.


🌸 SYNOPSIS 🌸

struct xe_ras_get_counter_response {
    struct xe_ras_error_class counter;
    u32 value;
    u64 timestamp;
    u32 threshold;
    u32 reserved[57];
 };

Okay so that's the whole shape of it β€” one struct, five fields, and a whole lotta reserved space at the end. Iconic. πŸ‘‘


πŸ’… Members πŸ’…

  • counter β€” the error counter that was queried πŸŽ€ like, the one you actually asked about.
  • value β€” the current counter value, i.e. the number you came for ✨
  • timestamp β€” a u64 timestamp of when the counter was last updated πŸ• so you know how fresh it is, no cap.
  • threshold β€” the threshold value for the counter 🌈
  • reserved β€” reserved πŸ™ˆ that's it, that's the whole vibe. reserved[57] is just sitting there holding space (main character energy, honestly).
Ngl, reserved is reserved β€” so don't go poking at it thinking you found a secret field. It's not for you, bestie. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/xe/xe_ras_types.h enum β€” that's the header where all this lore lives, go read it iykyk πŸ“–

And the whole fam, fr fr:

  • xe_ras_recovery_action(9)
  • struct xe_ras_error_common(9)
  • struct xe_ras_error_unit(9)
  • struct xe_ras_error_cause(9)
  • struct xe_ras_error_product(9)
  • struct xe_ras_error_class(9)
  • struct xe_ras_threshold_crossed(9)
  • struct xe_ras_get_counter_request(9)
  • struct xe_ras_clear_counter_request(9)
  • struct xe_ras_clear_counter_response(9)
  • struct xe_ras_error_array(9)
  • struct xe_ras_get_soc_error(9)
  • struct xe_ras_compute_error(9)
  • struct xe_ras_soc_error_source(9)
  • struct xe_ras_soc_error(9)
  • struct xe_ras_csc_error(9)
  • struct xe_ras_ieh_error(9)
  • struct xe_ras_memory_error(9)
  • struct xe_ras_get_health_request(9)
  • struct xe_ras_get_health_response(9)
  • struct xe_ras_set_health_request(9)
  • struct xe_ras_set_health_response(9)

Okay that's the whole page, you ate it up πŸ’…βœ¨ This little drop came from ./drivers/gpu/drm/xe, dated October 2026, and it's filed under struct xe_ra...ter_response(9) β€” go forth and query those counters, bestie, ily πŸ«ΆπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from